/* ==========================================================================
   VelqonTech — additions: Services menu, new service groups,
   "Today's desk" board, start steps, situations, engagement models.
   Uses the design tokens from style.css.
   ========================================================================== */

/* ---- Services drop-down ---- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > .nav__link { padding-right: 4px; }
.nav__caret { display: inline-grid; place-items: center; width: 26px; height: 30px; margin-left: -2px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; }
.nav__caret .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav__caret:hover { color: var(--blue); background: var(--blue-soft); }
.nav__menu { position: absolute; top: calc(100% + 12px); left: -18px; width: min(580px, 82vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -30px rgba(11, 27, 63, .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility .2s; z-index: 60; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .nav__caret .icon, .nav__item.is-open .nav__caret .icon { transform: rotate(180deg); }
.nav__menu a { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; padding: 12px 14px; border-radius: var(--radius); color: var(--text); text-decoration: none; transition: background-color .2s var(--ease); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--surface-2); }
.nav__menu a .icon { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.nav__menu strong { font-weight: 600; font-size: .98rem; }
.nav__menu small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.nav__menu .nav__all { grid-column: 1 / -1; display: block; text-align: center; font-weight: 600; font-size: .95rem; color: var(--blue); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); margin-top: 4px; }

.mobile-nav__sub .mobile-nav__link { padding-left: 22px; font-size: .98em; font-weight: 500; color: var(--text-2); justify-content: flex-start; gap: 12px; }
.mobile-nav__sub .mobile-nav__link .icon { color: var(--blue); width: 20px; height: 20px; }

.badge-new { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 650; letter-spacing: .01em; color: #5B2FD0; background: rgba(107, 63, 217, .1); border: 1px solid rgba(107, 63, 217, .18); }

/* ---- grouped service cards (home + services) ---- */
.svc-group + .svc-group { margin-top: clamp(48px, 6vw, 72px); }
.svc-group__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.svc-group__head h3 { font-size: var(--fs-h3); line-height: 1.2; margin: 0; }
.svc-group__head .muted { margin: 4px 0 0; font-size: var(--fs-sm); }
.service-card h3 .badge-new { margin-left: 6px; }

.svc-divider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 18px; padding: 28px 0 10px; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
.svc-divider:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.svc-divider .h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }

/* ---- desk section ---- */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.desk .section-head { margin-bottom: 36px; }
.start-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 22px; }
.start-steps li { counter-increment: st; position: relative; padding-left: 64px; }
.start-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--grad-btn); box-shadow: 0 10px 24px -12px rgba(27, 86, 240, .7); }
.start-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: -18px; width: 2px; background: linear-gradient(var(--blue-soft), transparent); }
.start-steps h3 { margin: 0 0 6px; font-size: 1.08rem; }
.start-steps p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }

.board { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 90px -45px rgba(11, 27, 63, .5), 0 1px 0 rgba(11, 27, 63, .03); }
.board__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.board__title { display: flex; align-items: center; gap: 8px; font-weight: 620; font-size: .98rem; }
.board__title .icon { color: var(--blue); }
.board__date { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .78rem; color: var(--muted); }
.board__cols, .lane__track { display: grid; grid-template-columns: repeat(4, 1fr); }
.board__cols { margin-left: 170px; padding: 10px 20px 8px; font-size: .8rem; font-weight: 520; color: var(--muted); }
.board__cols span { padding-left: 8px; }
.lane { display: grid; grid-template-columns: 170px 1fr; align-items: center; min-height: 78px; padding: 0 20px; border-top: 1px solid var(--line); }
.board__cols + .lane { border-top-color: transparent; }
.lane__name { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.lane__name strong { font-size: .92rem; font-weight: 600; line-height: 1.25; }
.lane__name code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .74rem; color: var(--muted); background: none; padding: 0; }
.lane__track { position: relative; height: 46px; border-radius: 12px; background: repeating-linear-gradient(to right, var(--surface-2) 0 calc(25% - 2px), transparent calc(25% - 2px) 25%); }
.token { position: absolute; top: 5px; bottom: 5px; left: calc(var(--to) * 25% + 4px); width: calc(25% - 10px); display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #fff; background: var(--grad-btn); box-shadow: 0 8px 18px -8px rgba(27, 86, 240, .8); }
.token .icon { width: 17px; height: 17px; stroke-width: 2.3; }
.token[data-state="checked"] { background: linear-gradient(135deg, #0F8A7E, #13875B); box-shadow: 0 8px 18px -8px rgba(19, 135, 91, .8); }
.token[data-state="work"] { background: var(--surface); color: var(--blue); border: 1.5px solid var(--blue); box-shadow: none; }
.token[data-state="work"]::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 1.5px solid var(--blue); opacity: 0; animation: tokenPulse 2.2s var(--ease) 2.4s infinite; }
@keyframes tokenPulse { 0% { opacity: .5; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.08); } }
.js .board:not(.is-live) .token { left: 4px; background: var(--surface); color: var(--muted); border: 1.5px dashed var(--line-strong); box-shadow: none; }
.js .board:not(.is-live) .token .icon { opacity: 0; }
.js .board .token { transition: left 1s cubic-bezier(.65, 0, .35, 1), background .35s .75s, color .35s .75s, border-color .35s .75s, box-shadow .35s .75s; }
.js .board .token .icon { transition: opacity .3s .8s; }
.board__foot { display: flex; align-items: flex-start; gap: 10px; padding: 14px 20px; font-size: .88rem; color: var(--text-2); background: var(--surface-2); border-top: 1px solid var(--line); }
.board__foot .icon { flex: none; margin-top: 2px; color: var(--success); }

/* ---- situations ---- */
.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.situations a { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.situations a:hover { transform: translateY(-3px); border-color: rgba(27, 86, 240, .35); box-shadow: 0 24px 50px -28px rgba(27, 86, 240, .45); }
.sit__q { font-size: 1.12rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.sit__a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--blue); }
.sit__a .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.situations a:hover .sit__a .icon { transform: translateX(4px); }

/* ---- engagement models ---- */
.models { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.model { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; }
.model h3 { margin: 8px 0 0; font-size: 1.12rem; }
.model p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.model .model__fit { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: .86rem; }

/* ---- responsive ---- */
@media (max-width: 1140px) {
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .situations, .models { grid-template-columns: minmax(0, 1fr); }
  .svc-group__head, .svc-divider { grid-template-columns: auto 1fr; }
  .svc-group__head .link-arrow, .svc-divider .link-arrow { grid-column: 1 / -1; justify-self: start; }
  .board__cols { margin-left: 0; padding-inline: 14px; }
  .lane { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }
  .lane__name { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px; }
  .board__top, .board__foot { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .token[data-state="work"]::after { animation: none; }
  .js .board .token, .js .board .token .icon { transition: none; }
}

/* ==========================================================================
   Form sending overlay with the Velqon mail robot
   ========================================================================== */
.send-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 31, 92, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.send-ov.is-open { opacity: 1; visibility: visible; }
.send-card { position: relative; width: min(440px, 100%); padding: 26px 26px 24px; border-radius: var(--radius-xl); text-align: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(10, 31, 92, .6);
  transform: translateY(18px) scale(.94); transition: transform .45s var(--ease-out); overflow: hidden; }
.send-ov.is-open .send-card { transform: none; }
.send-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: radial-gradient(120% 100% at 50% 0%, rgba(27, 86, 240, .12), transparent 70%); pointer-events: none; }

.send-stage { position: relative; height: 150px; margin: -6px auto 6px; width: 260px; }
.send-bot { position: absolute; left: 50%; top: 6px; width: 132px; height: 132px; margin-left: -66px; overflow: visible; }
.send-bot .bot { transform-origin: 70px 120px; animation: botBob 1.6s ease-in-out infinite; }
.send-bot .bot__eye { transform-box: fill-box; transform-origin: center; animation: botBlink 3.4s infinite; }
.send-bot .bot__ant { animation: botAnt 1s ease-in-out infinite alternate; }
.send-bot .bot__happy, .send-bot .bot__sad { opacity: 0; }
.send-bot .bot__arm-r { transform-box: fill-box; transform-origin: 0% 50%; animation: botWave 1.2s ease-in-out infinite; }
.send-bot .bot__shadow { transform-box: fill-box; transform-origin: center; animation: botShadow 1.6s ease-in-out infinite; }
.send-env { position: absolute; left: 50%; top: 92px; width: 34px; height: 24px; margin-left: 28px; opacity: 0; }
.send-ov.is-sending .send-env { animation: envFly 1.5s cubic-bezier(.45, 0, .3, 1) infinite; }
.send-trail { position: absolute; right: 6px; top: 22px; width: 64px; height: 40px; opacity: 0; }
.send-ov.is-sending .send-trail { opacity: 1; }
.send-trail span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); opacity: 0; animation: trail 1.5s ease-out infinite; }
.send-trail span:nth-child(2) { animation-delay: .2s; } .send-trail span:nth-child(3) { animation-delay: .4s; }

.send-ov.is-done .send-bot .bot { animation: botJump .7s var(--ease-out) 1, botBob 1.6s ease-in-out .7s infinite; }
.send-ov.is-done .bot__eye { opacity: 0; }
.send-ov.is-done .bot__happy { opacity: 1; }
.send-ov.is-done .bot__arm-r { animation: botCheer .5s ease-in-out 3 alternate; }
.send-ov.is-failed .bot__eye { opacity: 0; }
.send-ov.is-failed .bot__sad { opacity: 1; }
.send-ov.is-failed .send-bot .bot { animation: botShake .5s ease-in-out 1; }
.send-badge { position: absolute; left: 50%; top: 4px; margin-left: 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #0F8A7E, #13875B); box-shadow: 0 8px 18px -6px rgba(19, 135, 91, .7); transform: scale(0); }
.send-badge .icon { width: 18px; height: 18px; stroke-width: 3; }
.send-ov.is-done .send-badge { animation: badgePop .5s var(--ease-out) .25s forwards; }
.send-confetti i { position: absolute; left: 50%; top: 60px; width: 8px; height: 8px; border-radius: 2px; opacity: 0; }
.send-ov.is-done .send-confetti i { animation: confetti 1.1s var(--ease-out) forwards; }

.send-title { margin: 4px 0 6px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; }
.send-text { margin: 0 auto; max-width: 34ch; color: var(--text-2); font-size: var(--fs-sm); }
.send-steps { list-style: none; margin: 18px 0 0; padding: 14px 16px; display: grid; gap: 10px; text-align: left; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.send-steps li { display: flex; align-items: center; gap: 12px; font-size: .94rem; color: var(--muted); transition: color .3s var(--ease); }
.send-steps .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); transition: background .3s, border-color .3s; }
.send-steps .dot .icon { width: 12px; height: 12px; stroke-width: 3.2; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s var(--ease-out); }
.send-steps li.is-active { color: var(--text); font-weight: 560; }
.send-steps li.is-active .dot { border-color: var(--blue); border-right-color: transparent; animation: spin .8s linear infinite; }
.send-steps li.is-done { color: var(--text); }
.send-steps li.is-done .dot { border-color: var(--success); background: var(--success); animation: none; }
.send-steps li.is-done .dot .icon { opacity: 1; transform: none; }
.send-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.send-actions[hidden] { display: none; }
.send-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

@keyframes botBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes botShadow { 0%, 100% { transform: scaleX(1); opacity: .25; } 50% { transform: scaleX(.82); opacity: .15; } }
@keyframes botBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes botAnt { from { fill: #7FA6FF; } to { fill: #FFD25E; } }
@keyframes botWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
@keyframes botCheer { from { transform: rotate(0); } to { transform: rotate(-60deg); } }
@keyframes botJump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.04, .96); } 70% { transform: translateY(0) scale(1.06, .94); } 100% { transform: translateY(0) scale(1); } }
@keyframes botShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes envFly { 0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.6); } 15% { opacity: 1; transform: translate(6px, -6px) rotate(-6deg) scale(1); }
  70% { opacity: 1; transform: translate(70px, -64px) rotate(-18deg) scale(.85); } 100% { opacity: 0; transform: translate(92px, -78px) rotate(-22deg) scale(.5); } }
@keyframes trail { 0% { opacity: 0; transform: translate(0, 30px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translate(40px, -6px); } }
@keyframes badgePop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .send-bot .bot, .send-bot .bot__eye, .send-bot .bot__ant, .send-bot .bot__arm-r, .send-bot .bot__shadow, .send-ov.is-sending .send-env, .send-trail span, .send-ov.is-done .send-confetti i { animation: none !important; }
  .send-ov.is-done .send-badge { animation: none; transform: scale(1); }
}
.send-steps[hidden] { display: none; }
