/* the hidden attribute must win over component display rules (e.g. .btn { display: inline-flex }) */
[hidden] { display: none !important; }

/* ===== ready-made solutions ===== */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sol { padding: 26px 24px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background-color: var(--bg); transition: background-color .25s ease; }
.sol:nth-child(even) { border-right: 0; }
.sol:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.sol .tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 6px; }
.sol h3 { font-size: 22px; line-height: 1.15; }
.sol p { color: var(--muted); font-size: 15.5px; }
.sol .sol-note { font-size: 14px; color: #bdbdb8; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.sol .flow { margin-top: 2px; }
.sol-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.sol.spot, .sol.spot:hover { background-image: radial-gradient(320px circle at var(--mx) var(--my), rgba(255,77,46,.13), transparent 62%); }
.sol.spot:hover { background-color: var(--bg-2); }

.sol-visual { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 16px; min-height: 196px; display: grid; align-content: center; }
.sol-visual::before { content: ""; position: absolute; top: -90px; right: -70px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,77,46,.22), transparent 65%); pointer-events: none; }

.msg { position: relative; background: #101010; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px 14px; font-size: 13px; color: #d4d4cf; animation: msgfloat 5s ease-in-out infinite; }
@keyframes msgfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg-head b { font-weight: 500; color: #fff; font-size: 13px; }
.msg-head span { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--dim); text-align: right; }
.av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: #fff; background: linear-gradient(145deg, #ff6a45, #b3260f); }
.msg-title { margin: 10px 0 6px; font-weight: 500; color: #fff; font-size: 14px; }
.msg ul { list-style: none; display: grid; gap: 5px; }
.msg li { position: relative; padding-left: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.msg li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.msg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.msg-btns span { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 7px; color: #d4d4cf; }
.msg-btns .ok { background: #fff; color: #050505; border-color: #fff; animation: okpulse 3.2s ease-in-out infinite; }
@keyframes okpulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255,77,46,0); } 82% { box-shadow: 0 0 0 5px rgba(255,77,46,.35); } }
.skel { display: grid; gap: 7px; margin: 12px 0 2px; }
.skel i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #1c1c1c 25%, #2c2c2c 50%, #1c1c1c 75%); background-size: 200% 100%; animation: skel 2.2s linear infinite; }
.skel i.s { width: 58%; }
@keyframes skel { to { background-position: -200% 0; } }

.bots { gap: 10px; align-content: start; }
.bot { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: #101010; transition: border-color .2s ease, transform .25s ease; }
.bot:hover { border-color: var(--accent); transform: translateY(-2px); }
.bot b { display: block; font-family: var(--mono); font-size: 12.5px; color: #fff; font-weight: 500; }
.bot span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.42; }
.bot em { margin-left: auto; font-style: normal; color: var(--accent); font-size: 15px; padding-top: 2px; }

/* the nav has more items now: collapse into the burger menu earlier */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 68px; left: 0; right: 0; background: #070707; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px; gap: 0; }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: #fff; }
}
@media (max-width: 1080px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol, .sol:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .sol:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .msg, .msg-btns .ok, .skel i { animation: none; } }

/* ===== popup: request a ready-made solution ===== */
select { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 14px 40px 14px 16px; font-family: var(--sans); font-size: 16px; letter-spacing: -0.01em; text-transform: none; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff4d2e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; transition: border-color .2s ease, background-color .2s ease; }
select:focus { border-color: var(--accent); background-color: rgba(255,255,255,.06); }
select option { background: #121212; color: #f4f4f2; }

dialog.leadmodal { margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); color: var(--text); width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 40px 120px rgba(0,0,0,.75); }
dialog.leadmodal[open] { animation: popin .32s cubic-bezier(.2,.8,.2,1); }
dialog.leadmodal[open]::backdrop { animation: fadein .3s ease; }
dialog.leadmodal::backdrop { background: rgba(0,0,0,.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lead-inner { position: relative; padding: 30px 30px 26px; display: grid; gap: 18px; background: radial-gradient(ellipse 70% 55% at 100% 0%, rgba(255,77,46,.24), transparent 65%); }
.lead-inner h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 14px; max-width: none; padding-right: 36px; }
.modal-sub { margin-top: 10px; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.lead-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.lead-close:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: rotate(90deg); }
dialog.leadmodal textarea { min-height: 96px; }
@media (max-width: 560px) { .lead-inner { padding: 24px 20px 22px; } }
@media (prefers-reduced-motion: reduce) { dialog.leadmodal[open], dialog.leadmodal[open]::backdrop { animation: none; } .lead-close:hover { transform: none; } }

/* ===== Technical Lead + AI agent system (hierarchy) ===== */
.sys { display: grid; gap: 14px; }
.sys-lead { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 14px; background: linear-gradient(135deg, rgba(255,77,46,.18), rgba(255,77,46,.04)); box-shadow: 0 0 40px rgba(255,77,46,.12); }
.sys-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: #fff; }
.sys-av svg { width: 24px; height: 24px; }
.sys-lead b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -0.025em; color: #fff; }
.sys-lead span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: #d9cbc7; }
.sys-ok { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; animation: sysok 3.6s ease-in-out infinite; }
@keyframes sysok { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.3); } 90% { transform: scale(.96); } }
.sys-label { padding-left: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sys-agents { list-style: none; position: relative; margin: 0 0 0 22px; padding: 0 0 0 26px; display: grid; gap: 8px; }
.sys-agents::before { content: ""; position: absolute; left: 0; top: -30px; bottom: 26px; width: 1px; background: linear-gradient(var(--accent), var(--line-2) 35%); }
.sys-agents::after { content: ""; position: absolute; left: -2px; top: -30px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: syspulse 3.8s ease-in-out infinite; }
@keyframes syspulse { 0% { top: -30px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 26px); opacity: 0; } }
.sys-agents li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 36px 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s ease, transform .25s ease; }
.sys-agents li:hover { border-color: var(--accent); transform: translateX(3px); }
.sys-agents li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 20px; height: 1px; background: var(--line-2); }
.sys-agents li::after { content: ""; position: absolute; right: 14px; top: 50%; margin-top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: agblink 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s); }
@keyframes agblink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ag { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,77,46,.5); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ag svg { width: 20px; height: 20px; }
.sys-agents b { display: block; font-weight: 500; font-size: 15px; color: #fff; letter-spacing: -0.01em; }
.sys-agents span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .sys-ok, .sys-agents::after, .sys-agents li::after { animation: none; } .sys-agents li:hover { transform: none; } }

/* human role -> the agent that replaces it */
.role-map { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.role-map svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.role-map b { font-weight: 500; color: var(--accent); }
.role .sal { margin-top: 12px; }

.role-map span { line-height: 1.35; }
.role-map { padding-top: 12px; }

/* ===== social proof strip in the cases block ===== */
.proof { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: -6px 0 44px; }
.proof-avatars { display: flex; align-items: center; }
.proof-avatars img, .proof-avatars span { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #050505; box-shadow: 0 0 0 1px var(--line-2); margin-left: -13px; object-fit: cover; object-position: left top; background: var(--bg-2); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.proof-avatars > :first-child { margin-left: 0; }
.proof-avatars span { display: grid; place-items: center; font-family: var(--sans); font-size: 22px; font-weight: 400; line-height: 1; color: #fff; background: linear-gradient(145deg, #ff6a45, #b3260f); }
.proof:hover .proof-avatars img, .proof:hover .proof-avatars span { transform: translateY(-4px); }
.proof:hover .proof-avatars > :nth-child(2) { transition-delay: .05s; }
.proof:hover .proof-avatars > :nth-child(3) { transition-delay: .1s; }
.proof:hover .proof-avatars > :nth-child(4) { transition-delay: .15s; }
.proof-text { display: flex; align-items: center; gap: 12px; color: #cfcfca; font-size: 17px; }
.proof-text b { color: #fff; font-weight: 500; }
.proof-text i { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.flag-pl { display: inline-block; width: 20px; height: 14px; border-radius: 2px; background: linear-gradient(#fff 50%, #dc143c 50%); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }

/* ===== "who is accountable" ===== */
.owner-h { max-width: 24ch; }
.avatar.photo { padding: 0; overflow: hidden; border-style: solid; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* trust strip v2: centered, ten circles */
.proof { justify-content: center; text-align: center; margin: 0 0 54px; gap: 20px; }
.proof-avatars img, .proof-avatars svg { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid #050505; box-shadow: 0 0 0 1px var(--line-2); margin-left: -15px; object-fit: cover; background: var(--bg-2); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.proof-avatars > :first-child { margin-left: 0; }
.proof:hover .proof-avatars img, .proof:hover .proof-avatars svg { transform: translateY(-4px); }
.proof:hover .proof-avatars > :nth-child(2) { transition-delay: .04s; } .proof:hover .proof-avatars > :nth-child(3) { transition-delay: .08s; } .proof:hover .proof-avatars > :nth-child(4) { transition-delay: .12s; } .proof:hover .proof-avatars > :nth-child(5) { transition-delay: .16s; }
.proof:hover .proof-avatars > :nth-child(6) { transition-delay: .2s; } .proof:hover .proof-avatars > :nth-child(7) { transition-delay: .24s; } .proof:hover .proof-avatars > :nth-child(8) { transition-delay: .28s; } .proof:hover .proof-avatars > :nth-child(9) { transition-delay: .32s; } .proof:hover .proof-avatars > :nth-child(10) { transition-delay: .36s; }
@media (max-width: 560px) { .proof-avatars img, .proof-avatars svg { width: 38px; height: 38px; margin-left: -11px; } .proof-text { font-size: 16px; } }

/* trust strip v3: smaller portraits */
.proof-avatars img, .proof-avatars svg { width: 42px; height: 42px; margin-left: -12px; }
.proof-avatars > :first-child { margin-left: 0; }
@media (max-width: 560px) { .proof-avatars img, .proof-avatars svg { width: 34px; height: 34px; margin-left: -10px; } }

/* summary row of the comparison table */
.table-wrap tr.sum td { font-size: 13.5px; line-height: 1.45; color: #bdbdb8; background: rgba(255,255,255,.025); }
.table-wrap tr.sum td:first-child { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.table-wrap tr.sum td.col-us { color: #fff; }
