/* ═══════════════════════════════════════════
   KONTAKT — Apple × Framer × Aurora
═══════════════════════════════════════════ */
.kt { background:#000; color:#fff; }
.kt, .kt * { font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; }

.kt-canvas { position:relative; isolation:isolate; overflow:hidden; }
.kt-dark { background:#000; }
.kt-mid  { background:#0a0a0a; }

.kt-h2 { font-size:clamp(28px,3.4vw,46px); font-weight:600; letter-spacing:-0.025em; line-height:1.08; margin:0; }
.kt-h3 { font-size:clamp(18px,1.5vw,22px); font-weight:600; letter-spacing:-0.015em; line-height:1.25; margin:0; }
.kt-eyebrow { display:inline-block; font-size:13px; font-weight:500; letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.5); margin:0; }
.kt-eyebrow.accent { color:#a5b4fc; }
.kt-lead { font-size:clamp(15px,1.2vw,17px); font-weight:400; line-height:1.55; letter-spacing:-0.005em; color:rgba(255,255,255,0.66); }
.kt-p { font-size:14px; line-height:1.6; color:rgba(255,255,255,0.6); margin:0; }

.kt-row { display:flex; gap:10px; flex-wrap:wrap; }
.kt-btn-primary, .kt-btn-ghost {
  display:inline-flex; align-items:center; gap:6px;
  padding:11px 22px; border-radius:980px;
  font-size:14px; font-weight:500; letter-spacing:-0.005em;
  text-decoration:none; transition:all 0.18s; border:1px solid transparent; cursor:pointer;
}
.kt-btn-primary {
  color:#fff;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  background-size:200% 200%; animation:ktGradMove 6s ease infinite;
  box-shadow:0 8px 32px rgba(79,70,229,0.35);
}
.kt-btn-primary:hover { transform:translateY(-1px); box-shadow:0 12px 40px rgba(79,70,229,0.45); }
.kt-btn-ghost {
  background:rgba(255,255,255,0.06); color:#fff;
  border-color:rgba(255,255,255,0.18); backdrop-filter:blur(20px);
}
.kt-btn-ghost:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.32); }
.kt-link { display:inline-flex; align-items:center; gap:4px; color:#a5b4fc; text-decoration:none; font-size:14px; font-weight:500; }
.kt-link::after { content:'›'; font-size:18px; line-height:0.8; transform:translateY(-1px); }
.kt-link:hover { opacity:0.8; }

@keyframes ktGradMove { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }

/* ─── 1 · HERO ─────────────────────────────── */
.kt-hero {
  position:relative; min-height:88vh;
  padding:130px clamp(20px,4vw,56px) 80px;
  display:flex; flex-direction:column; align-items:center; gap:40px;
  text-align:center; overflow:hidden;
}
.kt-aurora { position:absolute; inset:-20%; pointer-events:none; z-index:0; filter:blur(70px); opacity:0.55; }
.kt-aurora::before, .kt-aurora::after, .kt-aurora-3 { content:''; position:absolute; border-radius:50%; }
.kt-aurora::before { width:700px; height:700px; background:radial-gradient(circle,#4f46e5 0%,transparent 70%); top:-10%; left:-10%; animation:ktA1 18s ease-in-out infinite; }
.kt-aurora::after  { width:600px; height:600px; background:radial-gradient(circle,#06b6d4 0%,transparent 70%); top:20%; right:-15%; animation:ktA2 22s ease-in-out infinite; }
.kt-aurora-3 { position:absolute; width:550px; height:550px; background:radial-gradient(circle,#5ef77f 0%,transparent 70%); bottom:-15%; left:30%; animation:ktA3 26s ease-in-out infinite; }
@keyframes ktA1 { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(80px,40px) scale(1.15); } }
@keyframes ktA2 { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(-60px,80px) scale(0.9); } }
@keyframes ktA3 { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(40px,-50px) scale(1.2); } }
.kt-hero > * { position:relative; z-index:1; }

.kt-hero-tag {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:500; letter-spacing:0.04em; text-transform:uppercase;
  color:#fff; padding:6px 14px; border-radius:100px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(20px); animation:ktFade 0.7s ease both;
}
.kt-hero-tag-dot { width:6px; height:6px; border-radius:50%; background:#5ef77f; box-shadow:0 0 12px rgba(94,247,127,0.8); animation:ktPulse 1.6s ease-in-out infinite; }

.kt-hero-title {
  font-size:clamp(48px,8vw,116px); font-weight:600; letter-spacing:-0.04em; line-height:0.98; margin:0;
  max-width:1200px; animation:ktFade 0.9s ease 0.05s both;
}
.kt-hero-title .gradient {
  background:linear-gradient(135deg,#818cf8 0%,#c084fc 35%,#06b6d4 65%,#5ef77f 100%);
  background-size:300% 300%; background-clip:text; -webkit-background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
  animation:ktGradMove 8s ease infinite;
}
.kt-hero-sub { max-width:660px; margin:0 auto; animation:ktFade 0.9s ease 0.1s both; }
.kt-hero-actions { justify-content:center; animation:ktFade 0.9s ease 0.15s both; }

/* Live status grid */
.kt-status {
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px; max-width:780px; width:100%;
  animation:ktFade 0.9s ease 0.25s both;
}
.kt-status-card {
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1);
  border-radius:14px; padding:16px; text-align:left;
  display:flex; flex-direction:column; gap:6px;
  backdrop-filter:blur(20px);
}
.kt-status-card .kt-status-dot {
  width:8px; height:8px; border-radius:50%; background:#5ef77f;
  box-shadow:0 0 8px #5ef77f; animation:ktPulse 1.6s ease-in-out infinite;
}
.kt-status-head { display:flex; align-items:center; gap:8px; font-size:11px; color:rgba(255,255,255,0.5); letter-spacing:0.06em; text-transform:uppercase; }
.kt-status-val { font-size:18px; font-weight:600; color:#fff; letter-spacing:-0.015em; }
.kt-status-sub { font-size:12px; color:rgba(255,255,255,0.45); }
@media (max-width:680px){ .kt-status { grid-template-columns:1fr; } }

@keyframes ktPulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
@keyframes ktFade { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

/* ─── 2 · CHANNELS (3 große Karten) ─────────────── */
.kt-channels {
  max-width:1480px; margin:0 auto; padding:0 clamp(20px,4vw,56px);
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
}
@media (max-width:1024px){ .kt-channels { grid-template-columns:1fr; } }
.kt-channel {
  position:relative; overflow:hidden;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:22px; padding:32px;
  display:flex; flex-direction:column; gap:18px; min-height:380px;
  transition:transform 0.3s, border-color 0.3s;
  cursor:pointer;
}
.kt-channel:hover { transform:translateY(-4px); border-color:rgba(165,180,252,0.4); }
.kt-channel::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle 280px at var(--x,50%) var(--y,50%), rgba(165,180,252,0.1), transparent 60%);
  opacity:0; transition:opacity 0.3s;
}
.kt-channel:hover::before { opacity:1; }
.kt-channel-icon {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; font-size:24px;
  background:linear-gradient(135deg, var(--c1, #4f46e5), var(--c2, #06b6d4));
  box-shadow:0 12px 28px var(--shadow, rgba(79,70,229,0.4));
}
.kt-channel-title { font-size:24px; font-weight:600; letter-spacing:-0.02em; color:#fff; margin:0; }
.kt-channel-desc  { font-size:14px; line-height:1.5; color:rgba(255,255,255,0.6); margin:0; flex:1; }
.kt-channel-meta  { display:flex; flex-direction:column; gap:8px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.08); }
.kt-channel-meta-row { display:flex; justify-content:space-between; font-size:13px; }
.kt-channel-meta-row span:first-child { color:rgba(255,255,255,0.5); }
.kt-channel-meta-row span:last-child  { color:#fff; font-weight:500; }
.kt-channel-cta {
  display:inline-flex; align-items:center; gap:6px; align-self:flex-start;
  padding:10px 18px; border-radius:980px; font-size:13px; font-weight:500;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.18);
  color:#fff; text-decoration:none; transition:all 0.18s;
}
.kt-channel:hover .kt-channel-cta { background:linear-gradient(135deg, var(--c1, #4f46e5), var(--c2, #06b6d4)); border-color:transparent; }

/* Live indicator on channel */
.kt-live-indicator {
  position:absolute; top:20px; right:20px;
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:500; color:#5ef77f;
  padding:4px 10px; border-radius:100px;
  background:rgba(94,247,127,0.1); border:1px solid rgba(94,247,127,0.3);
}
.kt-live-indicator .dot { width:6px; height:6px; border-radius:50%; background:#5ef77f; box-shadow:0 0 6px #5ef77f; animation:ktPulse 1.6s ease-in-out infinite; }

/* ─── 3 · SMART FORM ─────────────────────────── */
.kt-section { padding:clamp(80px,10vw,140px) 0; }
.kt-section-head {
  padding:0 clamp(20px,4vw,56px); max-width:1480px; margin:0 auto 56px;
  display:flex; flex-direction:column; gap:14px;
}
.kt-section-head.center { text-align:center; align-items:center; }

.kt-form-wrap {
  max-width:1100px; margin:0 auto; padding:0 clamp(20px,4vw,56px);
  display:grid; grid-template-columns:1fr 1.4fr; gap:32px;
}
@media (max-width:980px){ .kt-form-wrap { grid-template-columns:1fr; } }

/* Side panel */
.kt-form-side {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:22px; padding:32px; align-self:start;
  display:flex; flex-direction:column; gap:22px;
  position:sticky; top:100px;
}
@media (max-width:980px){ .kt-form-side { position:relative; top:0; } }
.kt-form-side h3 { font-size:22px; font-weight:600; letter-spacing:-0.02em; color:#fff; margin:0 0 4px; }
.kt-form-side-tip {
  display:flex; gap:10px; padding:14px;
  background:linear-gradient(135deg, rgba(79,70,229,0.08), rgba(94,247,127,0.06));
  border:1px solid rgba(165,180,252,0.18); border-radius:12px;
  font-size:13px; line-height:1.55; color:rgba(255,255,255,0.75);
}
.kt-form-side-tip-icon {
  width:24px; height:24px; border-radius:6px; flex-shrink:0;
  background:linear-gradient(135deg,#818cf8,#5ef77f);
  display:flex; align-items:center; justify-content:center; font-size:13px;
}
.kt-form-side-checks { display:flex; flex-direction:column; gap:12px; }
.kt-form-side-check { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.5; color:rgba(255,255,255,0.7); }
.kt-form-side-check::before {
  content:'✓'; flex-shrink:0; width:20px; height:20px; border-radius:50%;
  background:rgba(94,247,127,0.15); color:#5ef77f;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:600;
}

/* Smart form */
.kt-form {
  background:rgba(20,20,28,0.7); border:1px solid rgba(255,255,255,0.1);
  border-radius:22px; padding:32px; backdrop-filter:blur(20px);
  display:flex; flex-direction:column; gap:22px;
  position:relative;
}
.kt-form::before {
  content:''; position:absolute; inset:0; padding:1px;
  background:linear-gradient(135deg, rgba(129,140,248,0.4), rgba(94,247,127,0.4), rgba(6,182,212,0.4));
  border-radius:22px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:0.5; pointer-events:none;
}
.kt-form-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:18px; border-bottom:1px solid rgba(255,255,255,0.08); }
.kt-form-head-l { display:flex; align-items:center; gap:10px; }
.kt-form-head-l .kt-status-dot { width:8px; height:8px; border-radius:50%; background:#5ef77f; box-shadow:0 0 8px #5ef77f; animation:ktPulse 1.6s ease-in-out infinite; }
.kt-form-head-title { font-size:13px; font-weight:500; color:#fff; letter-spacing:-0.005em; }
.kt-form-head-sub   { font-size:11px; color:rgba(255,255,255,0.5); letter-spacing:0.06em; text-transform:uppercase; }
.kt-form-progress {
  height:4px; width:120px; background:rgba(255,255,255,0.06); border-radius:100px; overflow:hidden;
}
.kt-form-progress-bar { height:100%; background:linear-gradient(90deg,#4f46e5,#06b6d4,#5ef77f); width:0%; transition:width 0.4s; }

/* Form steps */
.kt-form-step { display:none; animation:ktFade 0.4s ease both; }
.kt-form-step.active { display:flex; flex-direction:column; gap:18px; }
.kt-step-label { font-size:12px; color:#a5b4fc; letter-spacing:0.06em; text-transform:uppercase; font-weight:500; }
.kt-step-q { font-size:22px; font-weight:600; letter-spacing:-0.02em; color:#fff; line-height:1.25; margin:0; }

/* Topic chooser tiles */
.kt-topics { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (max-width:540px){ .kt-topics { grid-template-columns:1fr; } }
.kt-topic {
  padding:16px; border-radius:14px; cursor:pointer;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1);
  display:flex; gap:12px; align-items:flex-start;
  transition:all 0.2s; text-align:left;
}
.kt-topic:hover { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.2); transform:translateY(-1px); }
.kt-topic.selected {
  background:linear-gradient(135deg, rgba(79,70,229,0.15), rgba(6,182,212,0.1));
  border-color:rgba(165,180,252,0.5);
  box-shadow:0 8px 24px rgba(79,70,229,0.2);
}
.kt-topic-icon {
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; font-size:18px;
  background:linear-gradient(135deg,#4f46e5,#06b6d4); flex-shrink:0;
}
.kt-topic-text { display:flex; flex-direction:column; gap:2px; }
.kt-topic-title { font-size:14px; font-weight:600; color:#fff; }
.kt-topic-desc  { font-size:12px; color:rgba(255,255,255,0.55); line-height:1.4; }

/* Inputs */
.kt-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.kt-field { display:flex; flex-direction:column; gap:6px; position:relative; }
.kt-field.full { grid-column:1/-1; }
.kt-field label { font-size:12px; font-weight:500; color:rgba(255,255,255,0.6); letter-spacing:0.02em; }
.kt-field label .req { color:#f472b6; }
.kt-input, .kt-textarea {
  width:100%; padding:13px 16px; font-size:14px;
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12);
  border-radius:12px; color:#fff; font-family:inherit;
  transition:border-color 0.2s, background 0.2s; outline:none;
}
.kt-input:focus, .kt-textarea:focus {
  border-color:rgba(165,180,252,0.6);
  background:rgba(255,255,255,0.06);
  box-shadow:0 0 0 3px rgba(165,180,252,0.1);
}
.kt-input::placeholder, .kt-textarea::placeholder { color:rgba(255,255,255,0.3); }
.kt-textarea { min-height:120px; resize:vertical; line-height:1.55; }

.kt-field-hint { font-size:11px; color:rgba(255,255,255,0.4); display:flex; align-items:center; gap:4px; }
.kt-field-hint.ok { color:#5ef77f; }
.kt-field-hint.err { color:#f87171; }

/* AI Suggest bubble — inline statt absolute, damit Buttons nicht überlagert werden */
.kt-ai-bubble {
  position: relative !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(94,247,127,0.06));
  border: 1px solid rgba(165,180,252,0.3);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  display: none;
  gap: 10px;
  max-width: 100%;
  backdrop-filter: blur(20px);
  z-index: auto;
  clear: both;
}
.kt-ai-bubble.show { display:flex; animation:ktFade 0.3s ease both; }
.kt-ai-bubble-icon {
  width:24px; height:24px; border-radius:6px; flex-shrink:0;
  background:linear-gradient(135deg,#818cf8,#5ef77f);
  display:flex; align-items:center; justify-content:center; font-size:12px;
}
.kt-ai-bubble-text { color:rgba(255,255,255,0.85); }
.kt-ai-bubble-text b { color:#fff; }
.kt-ai-bubble-actions { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.kt-ai-chip {
  font-size:11px; padding:4px 10px; border-radius:100px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15);
  color:#fff; cursor:pointer; transition:all 0.15s;
}
.kt-ai-chip:hover { background:rgba(255,255,255,0.12); border-color:rgba(165,180,252,0.4); }

/* Char counter */
.kt-counter { font-size:11px; color:rgba(255,255,255,0.4); text-align:right; }

/* Step actions */
.kt-step-actions { display:flex; justify-content:space-between; gap:10px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.08); }
.kt-step-actions .kt-btn-ghost.back { background:transparent; border-color:rgba(255,255,255,0.12); color:rgba(255,255,255,0.6); }
.kt-step-actions .kt-btn-ghost.back:hover { color:#fff; }

/* ═══════════════════════════════════════════════════════════
   TIME-TRAVEL VOYAGE — pigeon → coach → telegraph → fax → inbox
═════════════════════════════════════════════════════════════ */
.kt-voyage {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0;
  background: #08070a;
  border: 1px solid rgba(255,255,255,0.06);
  isolation: isolate;
}

/* backdrops crossfade through eras */
.kt-voy-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.kt-voy-bg-1 { /* medieval dusk */
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(120,80,40,0.5), transparent 60%),
    linear-gradient(180deg, #1a1410 0%, #2a1f15 40%, #3a2818 70%, #1a1008 100%);
  filter: sepia(0.5) contrast(1.1);
}
.kt-voy-bg-2 { /* 1850 dust road, sepia */
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(200,160,100,0.25), transparent 70%),
    linear-gradient(180deg, #c9a575 0%, #b08555 60%, #6e4a2a 100%);
  filter: sepia(0.7) contrast(1.05);
}
.kt-voy-bg-3 { /* 1920 b&w */
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, #e8e6e0, transparent 70%),
    linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
  filter: grayscale(1) contrast(1.15);
}
.kt-voy-bg-4 { /* 80s neon grid */
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(236,72,153,0.35), transparent 70%),
    linear-gradient(180deg, #1a0628 0%, #2a0a3a 40%, #050010 100%);
}
.kt-voy-bg-5 { /* modern cyan */
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,170,221,0.18), transparent 70%),
    linear-gradient(180deg, #050a14 0%, #07142a 60%, #0a1f3d 100%);
}
.kt-voyage.show .kt-voy-bg-1 { animation: ktBg 14s linear forwards; animation-delay: 0s; }
.kt-voyage.show .kt-voy-bg-2 { animation: ktBg 14s linear forwards; animation-delay: 2.4s; }
.kt-voyage.show .kt-voy-bg-3 { animation: ktBg 14s linear forwards; animation-delay: 4.8s; }
.kt-voyage.show .kt-voy-bg-4 { animation: ktBg 14s linear forwards; animation-delay: 7.2s; }
.kt-voyage.show .kt-voy-bg-5 { animation: ktBgFinal 14s linear forwards; animation-delay: 9.6s; }
@keyframes ktBg {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes ktBgFinal {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  100% { opacity: 1; }
}

/* caption rail */
.kt-voy-caption {
  position: absolute;
  left: 0; right: 0; top: 18px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  height: 18px;
  z-index: 5;
  pointer-events: none;
}
.kt-voy-step {
  position: absolute; left: 0; right: 0;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.kt-voy-step.active { opacity: 1; transform: translateY(0); }

/* progress dots */
.kt-voy-dots {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 5;
}
.kt-voy-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.4s ease, transform 0.4s ease;
}
.kt-voy-dots i.on {
  background: #5ef77f;
  box-shadow: 0 0 8px rgba(94,247,127,0.7);
  transform: scale(1.4);
}

/* shared act */
.kt-voy-act {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.kt-voy-act.on { opacity: 1; }

/* ── ACT 1: PIGEON ─────────────────────────────── */
.kt-voy-castle {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 80px;
}
.kt-voy-moon {
  position: absolute;
  top: 60px; right: 20%;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4e8c8, #d4c498 70%, #a89870);
  box-shadow: 0 0 40px rgba(244,232,200,0.4);
}
.kt-voy-pigeon {
  position: absolute;
  top: 50%; left: -100px;
  width: 80px; height: 50px;
  transform: translateY(-50%);
}
.kt-voyage.show .kt-voy-act-1 .kt-voy-pigeon {
  animation: ktPigeonFly 2.4s ease-in forwards;
  animation-delay: 0.2s;
}
@keyframes ktPigeonFly {
  0%   { left: -100px; top: 60%; }
  50%  { top: 35%; }
  100% { left: calc(100% + 60px); top: 25%; }
}
.kt-voy-wing {
  transform-origin: 26px 24px;
  animation: ktWing 0.25s ease-in-out infinite;
}
@keyframes ktWing {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-30deg); }
}

/* ── ACT 2: STAGECOACH ─────────────────────────────── */
.kt-voy-road {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(80,50,30,0.4), rgba(50,30,15,0.7));
}
.kt-voy-road::before {
  content:''; position: absolute;
  bottom: 28px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(80,50,30,0.4) 0 12px, transparent 12px 24px);
}
.kt-voy-poles {
  position: absolute;
  bottom: 60px; left: 0; right: 0;
  height: 80px;
}
.kt-voy-poles span {
  position: absolute;
  bottom: 0; width: 2px; height: 100%;
  background: rgba(40,25,12,0.6);
}
.kt-voy-poles span::before {
  content:''; position: absolute;
  top: 4px; left: -8px; width: 18px; height: 2px;
  background: rgba(40,25,12,0.6);
}
.kt-voy-poles span:nth-child(1) { left: 8%; }
.kt-voy-poles span:nth-child(2) { left: 28%; }
.kt-voy-poles span:nth-child(3) { left: 50%; }
.kt-voy-poles span:nth-child(4) { left: 72%; }
.kt-voy-poles span:nth-child(5) { left: 92%; }
.kt-voyage.show .kt-voy-act-2 .kt-voy-poles {
  animation: ktPolesPan 2.4s linear forwards;
  animation-delay: 2.6s;
}
@keyframes ktPolesPan {
  from { transform: translateX(60px); }
  to   { transform: translateX(-100px); }
}
.kt-voy-coach {
  position: absolute;
  bottom: 30px;
  left: -160px;
  width: 130px; height: 70px;
}
.kt-voyage.show .kt-voy-act-2 .kt-voy-coach {
  animation: ktCoachRoll 2.4s ease-in-out forwards;
  animation-delay: 2.6s;
}
@keyframes ktCoachRoll {
  0%   { left: -160px; transform: translateY(0); }
  20%  { transform: translateY(-2px); }
  40%  { transform: translateY(0); }
  60%  { transform: translateY(-2px); }
  80%  { transform: translateY(0); }
  100% { left: calc(100% + 40px); }
}
.kt-voy-wheel {
  transform-origin: center;
  animation: ktWheel 0.4s linear infinite;
}
@keyframes ktWheel {
  to { transform: rotate(360deg); }
}

/* ── ACT 3: TELEGRAPH ─────────────────────────────── */
.kt-voy-tele {
  position: absolute;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  width: 120px; height: 90px;
}
.kt-voyage.show .kt-voy-act-3 .kt-voy-tele {
  animation: ktTeleIn 0.6s ease-out forwards;
  animation-delay: 5.0s;
}
@keyframes ktTeleIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.kt-voy-key {
  transform-origin: 60px 53px;
  animation: ktKey 0.5s ease-in-out infinite;
}
@keyframes ktKey {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-10deg); }
}
.kt-voy-morse {
  position: absolute;
  top: 48px; left: 0; right: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px; letter-spacing: 0.4em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}
.kt-voy-morse span {
  display: inline-block;
  opacity: 0;
}
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span {
  animation: ktMorse 1.6s ease-in-out forwards;
}
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(1)  { animation-delay: 5.4s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(2)  { animation-delay: 5.5s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(3)  { animation-delay: 5.6s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(4)  { animation-delay: 5.7s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(5)  { animation-delay: 5.8s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(6)  { animation-delay: 5.9s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(7)  { animation-delay: 6.0s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(8)  { animation-delay: 6.1s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(9)  { animation-delay: 6.2s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(10) { animation-delay: 6.3s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(11) { animation-delay: 6.4s; }
.kt-voyage.show .kt-voy-act-3 .kt-voy-morse span:nth-child(12) { animation-delay: 6.5s; }
@keyframes ktMorse {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(40px); }
}
.kt-voy-spark {
  position: absolute;
  top: 30%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(255,255,255,0.8);
  opacity: 0;
}
.kt-voyage.show .kt-voy-act-3 .kt-voy-spark {
  animation: ktSpark 0.4s ease-in-out infinite;
  animation-delay: 5.2s;
}
@keyframes ktSpark {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* ── ACT 4: FAX / 80s ─────────────────────────────── */
.kt-voy-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 50%, rgba(236,72,153,0.5) 50%, transparent 51%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(236,72,153,0.4) 38px 39px),
    repeating-linear-gradient(0deg,  transparent 0 38px, rgba(6,182,212,0.3) 38px 39px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 70%, 0 0, 0 0;
  mask-image: linear-gradient(180deg, transparent 30%, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 70%);
  perspective: 400px;
  transform: rotateX(60deg);
  transform-origin: center 100%;
}
.kt-voy-fax {
  position: absolute;
  left: 50%; top: 30%;
  transform: translateX(-50%);
  width: 180px; height: 130px;
  filter: drop-shadow(0 0 16px rgba(236,72,153,0.5));
}
.kt-voyage.show .kt-voy-act-4 .kt-voy-fax {
  animation: ktFaxIn 0.6s ease-out forwards;
  animation-delay: 7.4s;
}
@keyframes ktFaxIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.kt-voy-fax-paper {
  transform-origin: 65px 0;
  transform: scaleY(0);
}
.kt-voyage.show .kt-voy-act-4 .kt-voy-fax-paper {
  animation: ktFaxPaper 1.4s ease-in-out forwards;
  animation-delay: 7.8s;
}
@keyframes ktFaxPaper {
  0%   { transform: scaleY(0); }
  60%  { transform: scaleY(1); }
  100% { transform: scaleY(1) translateY(0); }
}

/* ── ACT 5: COGSWELL INBOX ─────────────────────────────── */
.kt-voy-net {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(0,170,221,0.6) 0, rgba(0,170,221,0.6) 1px, transparent 1.5px),
    radial-gradient(circle at 28% 55%, rgba(0,170,221,0.5) 0, rgba(0,170,221,0.5) 1px, transparent 1.5px),
    radial-gradient(circle at 48% 22%, rgba(0,170,221,0.5) 0, rgba(0,170,221,0.5) 1px, transparent 1.5px),
    radial-gradient(circle at 62% 70%, rgba(0,170,221,0.4) 0, rgba(0,170,221,0.4) 1px, transparent 1.5px),
    radial-gradient(circle at 78% 38%, rgba(0,170,221,0.5) 0, rgba(0,170,221,0.5) 1px, transparent 1.5px),
    radial-gradient(circle at 88% 78%, rgba(0,170,221,0.6) 0, rgba(0,170,221,0.6) 1px, transparent 1.5px);
  opacity: 0.5;
}
.kt-voy-inbox {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(420px, 80%);
  background: rgba(20,20,28,0.92);
  border: 1px solid rgba(0,170,221,0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,170,221,0.25), 0 0 0 4px rgba(0,170,221,0.08);
  opacity: 0;
}
.kt-voyage.show .kt-voy-act-5 .kt-voy-inbox {
  animation: ktInboxIn 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  animation-delay: 9.8s;
}
@keyframes ktInboxIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.kt-voy-inbox-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kt-voy-dot { width: 10px; height: 10px; border-radius: 50%; }
.kt-voy-dot.r { background: #ff5f57; }
.kt-voy-dot.y { background: #febc2e; }
.kt-voy-dot.g { background: #28c840; }
.kt-voy-inbox-title {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.kt-voy-mail {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px;
  background: rgba(0,170,221,0.06);
  opacity: 0;
}
.kt-voyage.show .kt-voy-act-5 .kt-voy-mail {
  animation: ktMailDrop 0.5s ease-out forwards;
  animation-delay: 10.4s;
}
@keyframes ktMailDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kt-voy-mail-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #5ef77f);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #050a14;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.kt-voy-mail-body { flex: 1; min-width: 0; }
.kt-voy-mail-from {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.kt-voy-mail-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 400;
  color: #5ef77f;
}
.kt-voy-mail-sub {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kt-voy-mail-prev {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kt-voy-mail-pulse {
  position: absolute;
  left: 6px; top: 50%;
  width: 4px; height: 32px; border-radius: 2px;
  background: #5ef77f;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(94,247,127,0.7);
  opacity: 0;
}
.kt-voyage.show .kt-voy-act-5 .kt-voy-mail-pulse {
  animation: ktMailPulse 1.2s ease-in-out forwards;
  animation-delay: 10.4s;
}
@keyframes ktMailPulse {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  .kt-voyage { height: 320px; }
  .kt-voy-inbox { width: 90%; }
}

/* Success state */
.kt-success { text-align:center; padding:40px 20px; display:flex; flex-direction:column; align-items:center; gap:14px; }
.kt-success-check {
  width:72px; height:72px; border-radius:50%;
  background:linear-gradient(135deg,#5ef77f,#06b6d4);
  display:flex; align-items:center; justify-content:center; font-size:32px;
  box-shadow:0 16px 40px rgba(94,247,127,0.4);
  animation:ktPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes ktPop { 0% { transform:scale(0); } 100% { transform:scale(1); } }
.kt-success h3 { font-size:24px; font-weight:600; color:#fff; margin:6px 0 0; }
.kt-success p { font-size:14px; color:rgba(255,255,255,0.6); margin:0; max-width:380px; line-height:1.5; }

/* ─── 4 · INFO/MAP ─────────────────────────────── */
.kt-info-grid {
  max-width:1480px; margin:0 auto; padding:0 clamp(20px,4vw,56px);
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
}
@media (max-width:900px){ .kt-info-grid { grid-template-columns:1fr; } }
.kt-info-card {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:22px; padding:32px;
  display:flex; flex-direction:column; gap:18px;
}
.kt-info-card h3 { font-size:22px; font-weight:600; letter-spacing:-0.02em; color:#fff; margin:0; }
.kt-info-row { display:flex; gap:14px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.kt-info-row:last-child { border-bottom:none; }
.kt-info-icon {
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.kt-info-text { display:flex; flex-direction:column; gap:2px; }
.kt-info-label { font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:rgba(255,255,255,0.5); }
.kt-info-value { font-size:14px; font-weight:500; color:#fff; }
.kt-info-value a { color:#fff; text-decoration:none; }
.kt-info-value a:hover { color:#a5b4fc; }

/* Map (stylized) */
.kt-map {
  position:relative; min-height:380px;
  background:radial-gradient(circle at 50% 50%, rgba(79,70,229,0.15), transparent 70%), #0a0a0a;
  border:1px solid rgba(255,255,255,0.08); border-radius:22px; overflow:hidden;
}
.kt-map svg { display:block; width:100%; height:100%; }
.kt-map-pin {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-100%);
  width:28px; height:28px; border-radius:50%;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  box-shadow:0 0 0 4px rgba(79,70,229,0.25), 0 0 0 14px rgba(79,70,229,0.1), 0 12px 24px rgba(79,70,229,0.5);
  display:flex; align-items:center; justify-content:center; font-size:14px;
  animation:ktPin 2.5s ease-in-out infinite;
}
@keyframes ktPin { 0%,100% { transform:translate(-50%,-100%) scale(1); } 50% { transform:translate(-50%,-104%) scale(1.05); } }
.kt-map-label {
  position:absolute; bottom:24px; left:24px;
  background:rgba(20,20,28,0.85); border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(14px); border-radius:14px; padding:14px 18px;
  display:flex; flex-direction:column; gap:2px;
}
.kt-map-label-title { font-size:14px; font-weight:600; color:#fff; }
.kt-map-label-sub { font-size:12px; color:rgba(255,255,255,0.6); }

/* ─── 5 · TRUST ─────────────────────────── */
.kt-trust {
  max-width:1480px; margin:0 auto; padding:0 clamp(20px,4vw,56px);
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
@media (max-width:900px){ .kt-trust { grid-template-columns:repeat(2,1fr); } }
.kt-trust-card {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:18px; padding:24px;
  display:flex; flex-direction:column; gap:8px;
}
.kt-trust-icon { font-size:22px; }
.kt-trust-num { font-size:clamp(28px,2.6vw,38px); font-weight:600; letter-spacing:-0.03em; color:#fff; }
.kt-trust-label { font-size:13px; color:rgba(255,255,255,0.6); }

/* ─── 6 · FAQ ─────────────────────────────── */
.kt-faq { max-width:840px; margin:0 auto; padding:0 clamp(20px,4vw,56px); display:flex; flex-direction:column; gap:8px; }
.kt-faq-item { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:14px; overflow:hidden; transition:border-color 0.2s; }
.kt-faq-item:hover { border-color:rgba(255,255,255,0.18); }
.kt-faq-item.open { border-color:rgba(165,180,252,0.35); }
.kt-faq-q { width:100%; padding:18px 22px; background:transparent; border:none; color:#fff; font-size:15px; font-weight:500; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:14px; font-family:inherit; }
.kt-faq-icon { width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-size:14px; transition:transform 0.25s; flex-shrink:0; }
.kt-faq-item.open .kt-faq-icon { transform:rotate(45deg); background:linear-gradient(135deg,#4f46e5,#06b6d4); border-color:transparent; }
.kt-faq-a { display:none; padding:0 22px 20px; font-size:14px; line-height:1.6; color:rgba(255,255,255,0.65); }
.kt-faq-item.open .kt-faq-a { display:block; }

/* ─── 7 · CTA ─────────────────────────── */
.kt-cta {
  max-width:980px; margin:0 auto; padding:80px clamp(20px,4vw,56px);
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:18px;
}
.kt-cta h2 { font-size:clamp(30px,4.2vw,60px); font-weight:600; letter-spacing:-0.025em; line-height:1.08; margin:0; }
.kt-cta h2 .grad-x {
  background:linear-gradient(135deg,#818cf8 0%,#5ef77f 100%);
  background-clip:text; -webkit-background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
}
.kt-cta p { font-size:clamp(15px,1.3vw,18px); color:rgba(255,255,255,0.66); max-width:560px; margin:0; line-height:1.45; }

/* Reveal-on-scroll */
.r-up { opacity:0; transform:translateY(28px); transition:opacity 0.7s, transform 0.7s; }
.r-up.in { opacity:1; transform:none; }




/* ════════════════════════════════════════════════════════════════════
   FORM: Mode-Toggle, Quick-Step, Smart Defaults, Inline Validation
   ════════════════════════════════════════════════════════════════════ */

/* MODE TOGGLE */
.kt-mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin: 0 0 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.kt-mode-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: rgba(255,255,255,0.65);
  font-family: inherit;
  transition: all .2s;
}
.kt-mode-btn:hover { background: rgba(255,255,255,0.04); color: #fff; }
.kt-mode-btn.is-on {
  background: linear-gradient(135deg, rgba(6,182,212,0.16), rgba(79,70,229,0.12));
  border-color: rgba(6,182,212,0.4);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6,182,212,0.2);
}
.kt-mode-ico { font-size: 20px; flex-shrink: 0; line-height: 1; }
.kt-mode-title { display:block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.kt-mode-sub { display:block; font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 1px; }

/* MODE VISIBILITY */
.kt-form[data-mode="quick"] .kt-form-head,
.kt-form[data-mode="quick"] .kt-form-step:not(.kt-quick-step):not([data-step="voyage"]):not([data-step="success"]) { display: none !important; }
.kt-form[data-mode="quick"] .kt-quick-step.active { display: flex; }
.kt-form[data-mode="full"] .kt-quick-step { display: none !important; }
.kt-form[data-mode="full"] .kt-form-head { display: flex; }

/* QUICK STEP layout */
.kt-quick-step { flex-direction: column; gap: 16px; padding-top: 4px; }
.kt-quick-hint {
  flex: 1;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.kt-mode-switch {
  background: none; border: none;
  color: #67e8f9;
  font: inherit; font-size: 12.5px;
  cursor: pointer;
  padding: 0; margin-left: 6px;
  border-bottom: 1px dashed rgba(103,232,249,0.4);
}
.kt-mode-switch:hover { color: #fff; border-color: #fff; }

/* AUTO-DETECTED TOPIC CHIP */
.kt-detected {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(6,182,212,0.10);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 999px;
  font-size: 12px;
  animation: ktDetectedIn .3s ease both;
}
.kt-detected[hidden] { display: none; }
.kt-detected-label { color: rgba(165,180,252,0.85); letter-spacing: 0.02em; }
.kt-detected-chip { color: #67e8f9; font-weight: 600; }
@keyframes ktDetectedIn { from { opacity: 0; transform: translateY(4px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* INLINE VALIDATION */
.kt-field.kt-validated { position: relative; }
.kt-field.kt-validated .kt-tick {
  position: absolute;
  right: 12px;
  top: 38px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ef77f, #06b6d4);
  color: #001020;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  opacity: 0; transform: scale(0.6);
  transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(94,247,127,0.35);
}
.kt-field.kt-validated.is-valid .kt-tick { opacity: 1; transform: scale(1); }
.kt-field.kt-validated.is-valid .kt-input,
.kt-field.kt-validated.is-valid .kt-textarea { border-color: rgba(94,247,127,0.45); padding-right: 42px; }
.kt-field.kt-validated.has-error .kt-input,
.kt-field.kt-validated.has-error .kt-textarea { border-color: rgba(248,113,113,0.5); }

/* Tick position for textareas: top-right corner */
.kt-field.kt-validated.full .kt-tick { top: 38px; }
@media (max-width: 520px) {
  .kt-mode-toggle { grid-template-columns: 1fr; }
  .kt-mode-btn { padding: 10px 14px; }
}
.kt-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Inter', -apple-system, sans-serif;
}
.kt-modal.is-open { display: flex; }
.kt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,5,13,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: ktModalFade .25s ease both;
}
@keyframes ktModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ktModalRise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.kt-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(6,182,212,0.10), transparent 60%),
    linear-gradient(180deg, #0e1320 0%, #07090f 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 32px 32px 28px;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(6,182,212,0.05);
  animation: ktModalRise .35s cubic-bezier(.2,.8,.2,1) both;
}
.kt-modal-card::-webkit-scrollbar { width: 6px; }
.kt-modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.kt-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.7);
  border-radius: 50%;
  font-size: 20px; line-height: 1;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.kt-modal-close:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); transform: rotate(90deg); }

.kt-modal-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.kt-modal-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(94,247,127,0.3);
}
.kt-modal-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.kt-modal-sub { margin: 0; font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.kt-modal-form { display: flex; flex-direction: column; gap: 14px; }
.kt-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .kt-modal-row { grid-template-columns: 1fr; } }

.kt-modal-field { display: flex; flex-direction: column; gap: 6px; }
.kt-modal-field > span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
}
.kt-modal-field input,
.kt-modal-field select,
.kt-modal-field textarea {
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
  font-family: inherit;
}
.kt-modal-field textarea { resize: vertical; min-height: 72px; }
.kt-modal-field input::placeholder,
.kt-modal-field textarea::placeholder { color: rgba(255,255,255,0.3); }
.kt-modal-field input:focus,
.kt-modal-field select:focus,
.kt-modal-field textarea:focus {
  border-color: rgba(6,182,212,0.55);
  background: rgba(6,182,212,0.06);
}
.kt-modal-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}
.kt-modal-field select option { background: #0e1320; color: #fff; }

.kt-modal-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  cursor: pointer;
  margin-top: 4px;
}
.kt-modal-check input { accent-color: #06b6d4; margin-top: 3px; }
.kt-modal-check a { color: #67e8f9; text-decoration: underline; text-underline-offset: 2px; }

.kt-modal-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px;
  padding: 13px 22px;
  font: inherit; font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  color: #001020;
  background: linear-gradient(135deg, #5ef77f, #06b6d4);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .15s;
  box-shadow: 0 8px 24px rgba(6,182,212,0.32);
}
.kt-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(6,182,212,0.45); }
.kt-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.kt-modal-success {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 8px;
  padding: 16px 18px;
  background: rgba(94,247,127,0.07);
  border: 1px solid rgba(94,247,127,0.30);
  border-radius: 14px;
  animation: ktModalRise .35s cubic-bezier(.2,.8,.2,1) both;
}
.kt-modal-success[hidden] { display: none; }
.kt-modal-success-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #5ef77f, #06b6d4);
  color: #001020;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
}
.kt-modal-success strong { display:block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.kt-modal-success p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.kt-modal-success p strong { display: inline; color: #5ef77f; }

/* hide form once submitted */
.kt-modal-form.is-sent > :not(.kt-modal-success) { display: none; }
.kt-vpn {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 55% 50%, rgba(6,182,212,0.10), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 0%, #0a1224 0%, #04060f 100%);
  isolation: isolate;
  font-family: 'Inter', -apple-system, sans-serif;
}

.kt-vpn-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(165,180,252,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165,180,252,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}

.kt-vpn-glow {
  position: absolute;
  width: 320px; height: 320px;
  right: 18%; bottom: 12%;
  background: radial-gradient(circle, rgba(6,182,212,0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: ktvGlowPulse 3s ease-in-out infinite;
}
@keyframes ktvGlowPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%     { opacity: 0.9; transform: scale(1.1); }
}

.kt-vpn-map {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* 3D Globe canvas */
.kt-globe-canvas {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 90%);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  filter: drop-shadow(0 0 40px rgba(6,182,212,0.25));
}
.kt-vpn-globe { min-height: 560px; }
@media (max-width: 768px) {
  .kt-vpn-globe { min-height: 440px; }
  .kt-globe-canvas { width: 78%; }
}

/* routing path */
.kt-vpn-path {
  stroke-dasharray: 6 6;
  animation: ktvDash 1.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(6,182,212,0.6));
}
@keyframes ktvDash {
  to { stroke-dashoffset: -24; }
}

/* moving packet */
.kt-vpn-packet {
  filter: drop-shadow(0 0 8px rgba(103,232,249,0.9));
}

/* hops */
.kt-vpn-hop-pulse {
  fill: rgba(6,182,212,0.25);
  transform-origin: center;
  transform-box: fill-box;
  animation: ktvHopPulse 2s ease-out infinite;
}
.kt-vpn-hop-pulse-2 {
  animation-delay: 1s;
}
@keyframes ktvHopPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
.kt-vpn-hop-dot {
  fill: rgba(6,182,212,0.5);
  stroke: #67e8f9;
  stroke-width: 1;
}
.kt-vpn-hop-core {
  fill: #fff;
}
.kt-vpn-hop-end .kt-vpn-hop-pulse {
  fill: rgba(94,247,127,0.3);
}
.kt-vpn-hop-end .kt-vpn-hop-dot {
  fill: rgba(94,247,127,0.5);
  stroke: #5ef77f;
}

/* hop labels */
.kt-vpn-labels {
  position: absolute; inset: 0;
  pointer-events: none;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.kt-vpn-label {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,12,20,0.85);
  border: 1px solid rgba(6,182,212,0.3);
  padding: 5px 10px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, -120%);
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.kt-vpn-label-flag { font-size: 14px; line-height: 1; }
.kt-vpn-label-text { display: flex; flex-direction: column; gap: 1px; }
.kt-vpn-label-city {
  font-size: 10px; font-weight: 600; color: #fff;
  letter-spacing: 0.04em;
}
.kt-vpn-label-ip {
  font-size: 9px; color: rgba(165,180,252,0.7);
  letter-spacing: 0.04em;
}
.kt-vpn-label-end {
  background: rgba(94,247,127,0.12);
  border-color: rgba(94,247,127,0.5);
  box-shadow: 0 0 16px rgba(94,247,127,0.25);
  opacity: 1;
}
.kt-vpn-label-end .kt-vpn-label-city { color: #5ef77f; }

/* HUD */
.kt-vpn-hud {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10,12,20,0.7);
  border: 1px solid rgba(165,180,252,0.18);
  padding: 6px 10px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
}
.kt-vpn-hud-tl { top: 16px; left: 16px; }
.kt-vpn-hud-tr { top: 16px; right: 16px; }
.kt-vpn-hud-bl { bottom: 16px; left: 16px; }
.kt-vpn-hud-br { bottom: 16px; right: 16px; }
.kt-vpn-hud-key { color: rgba(165,180,252,0.7); }
.kt-vpn-hud-val { color: #67e8f9; font-weight: 600; }
.kt-vpn-hud-sep { color: rgba(255,255,255,0.3); }
.kt-vpn-led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5ef77f;
  box-shadow: 0 0 8px #5ef77f;
  animation: ktvLed 1.4s ease-in-out infinite;
}
@keyframes ktvLed {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}

/* traceroute panel */
.kt-vpn-trace {
  position: absolute;
  top: 50%; left: 16px;
  transform: translateY(-50%);
  background: rgba(8,10,18,0.85);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  min-width: 240px;
  z-index: 4;
}
.kt-vpn-trace-head {
  display: flex; gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(165,180,252,0.15);
  color: rgba(165,180,252,0.7);
}
.kt-vpn-trace-prompt { color: #5ef77f; }
.kt-vpn-trace-row {
  display: grid;
  grid-template-columns: 24px 1fr 70px 50px;
  gap: 8px;
  padding: 2px 0;
  opacity: 0;
  animation: ktvTraceIn 0.4s ease forwards;
  letter-spacing: 0.02em;
}
.kt-vpn-trace-row > span:nth-child(1) { color: rgba(165,180,252,0.6); }
.kt-vpn-trace-row > span:nth-child(2) { color: #67e8f9; }
.kt-vpn-trace-row > span:nth-child(3) { color: rgba(255,255,255,0.65); }
.kt-vpn-trace-row > span:nth-child(4) { color: rgba(255,255,255,0.85); text-align: right; }
.kt-vpn-trace-row[data-i="0"] { animation-delay: 0.4s; }
.kt-vpn-trace-row[data-i="1"] { animation-delay: 0.9s; }
.kt-vpn-trace-row[data-i="2"] { animation-delay: 1.4s; }
.kt-vpn-trace-row[data-i="3"] { animation-delay: 1.9s; }
.kt-vpn-trace-row[data-i="4"] { animation-delay: 2.4s; }
.kt-vpn-trace-row[data-i="5"] { animation-delay: 2.9s; }
.kt-vpn-trace-row-end > span:nth-child(2),
.kt-vpn-trace-row-end > span:nth-child(4) { color: #5ef77f; }
@keyframes ktvTraceIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* endpoint label (top-center reveal) */
.kt-vpn-endpoint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,10,18,0.85);
  border: 1px solid rgba(94,247,127,0.4);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: 0 0 30px rgba(94,247,127,0.18);
  opacity: 0;
  animation: ktvEndpointIn 0.6s ease 3.2s forwards;
  z-index: 5;
  max-width: 220px;
}
.kt-vpn-endpoint-head {
  display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #5ef77f;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kt-vpn-endpoint-led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5ef77f;
  box-shadow: 0 0 8px #5ef77f;
  animation: ktvLed 1.4s ease-in-out infinite;
}
.kt-vpn-endpoint-title {
  font-size: 18px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.kt-vpn-endpoint-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
@keyframes ktvEndpointIn {
  from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .kt-vpn *,
  .kt-vpn *::before,
  .kt-vpn *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .kt-vpn-trace { display: none; }
  .kt-vpn-endpoint { max-width: 180px; padding: 10px 12px; }
  .kt-vpn-endpoint-title { font-size: 15px; }
  .kt-vpn-label { padding: 3px 6px; }
  .kt-vpn-label-city { font-size: 9px; }
  .kt-vpn-label-ip { font-size: 8px; }
}
@media (max-width: 600px) {
  .kt-vpn { min-height: 380px; }
  .kt-vpn-labels .kt-vpn-label:not(.kt-vpn-label-end) { display: none; }
  .kt-vpn-hud { font-size: 9px; padding: 4px 8px; }
}
