/* Telegram & Discord intelligence: "chat evidence". Light sky hero with a centred headline, a message being extracted
   into an evidence card, annotated anatomy, version diff and a hash chain. Scoped to main.tg. */
.tg{--tele:#229ed9;--disc:#5865f2;--sky:#eef7ff}

/* Hero */
.tg-hero{position:relative;overflow:hidden;background:radial-gradient(700px 360px at 15% 10%,rgba(34,158,217,.18),transparent 60%),radial-gradient(700px 360px at 85% 20%,rgba(88,101,242,.16),transparent 60%),linear-gradient(180deg,#f3f9ff,#f7f6ff);padding:60px 0 90px;text-align:center}
.tg-bubbles i{position:absolute;border-radius:22px 22px 22px 6px;background:#fff;box-shadow:0 18px 40px -24px rgba(34,80,160,.4);opacity:.7;animation:tgFloat 14s ease-in-out infinite}
.tg-bubbles i:nth-child(1){width:120px;height:44px;left:6%;top:18%}
.tg-bubbles i:nth-child(2){width:80px;height:36px;left:12%;top:62%;animation-delay:-4s;border-radius:22px 22px 6px 22px}
.tg-bubbles i:nth-child(3){width:150px;height:48px;right:7%;top:14%;animation-delay:-8s}
.tg-bubbles i:nth-child(4){width:90px;height:38px;right:12%;top:58%;animation-delay:-2s;border-radius:22px 22px 6px 22px}
.tg-bubbles i:nth-child(5){width:60px;height:30px;left:45%;top:6%;animation-delay:-10s}
@keyframes tgFloat{50%{transform:translateY(-18px)}}
.tg-hero-copy{position:relative;max-width:820px;margin:0 auto}
.tg-crumb{display:flex;justify-content:center;gap:8px;font-size:13px;color:#7083a4;margin-bottom:18px}
.tg-crumb a{color:var(--tele);text-decoration:none}
.tg-platforms{display:inline-flex;align-items:center;gap:8px;padding:6px;border-radius:999px;background:#fff;box-shadow:0 10px 30px -18px rgba(34,80,160,.5)}
.tg-platforms span{font-size:13px;font-weight:700;padding:6px 14px;border-radius:999px;color:#fff}
.tg-tele{background:var(--tele)}.tg-disc{background:var(--disc)}
.tg-platforms .tg-plus{background:none;color:#8a96ab;padding:0}
.tg-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.05;font-weight:800;color:#0b1a3a;margin-top:22px!important}
.tg-hero h1 span{background:linear-gradient(100deg,var(--tele),var(--disc));-webkit-background-clip:text;background-clip:text;color:transparent}
.tg-lead{margin:20px auto 0!important;font-size:18px;line-height:1.65;color:#4d5d7a;max-width:680px}
.tg-hero .hx-ctas{justify-content:center}

/* Stage: chat -> beam -> evidence card */
.tg-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);align-items:center;max-width:1040px;margin:54px auto 0;text-align:left}
.tg-chat,.tg-card{border-radius:20px;background:#fff;box-shadow:0 40px 80px -40px rgba(34,80,160,.45),0 0 0 1px rgba(34,80,160,.06)}
.tg-chat{overflow:hidden}
.tg-chat-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(90deg,#2aabee,#229ed9);color:#fff}
.tg-ava{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.25);font-size:12px;font-weight:800;flex:none}
.tg-chat-head b{display:block;font-size:15px}.tg-chat-head small{font-size:12px;opacity:.85}
.tg-msgs{padding:16px;display:flex;flex-direction:column;gap:10px;background:#e7f1f9 radial-gradient(circle,#d5e6f3 1px,transparent 1.2px) 0 0/16px 16px}
.tg-in{max-width:88%;padding:9px 13px;border-radius:14px 14px 14px 4px;background:#fff;font-size:14px;line-height:1.45;color:#1c2b45;box-shadow:0 1px 1px rgba(0,0,0,.06);opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s;transition-delay:calc(var(--j)*.45s + .3s)}
.tg-in b{display:block;font-size:12px;color:var(--tele);margin-bottom:2px}
.tg-stage.is-in .tg-in{opacity:1;transform:none}
.tg-hit mark{background:rgba(34,158,217,.18);color:#0b5c84;border-radius:4px;padding:0 3px;font-family:var(--mono);font-size:12.5px;animation:tgMark 2.4s 1.6s ease-in-out infinite}
@keyframes tgMark{50%{background:rgba(88,101,242,.3)}}
.tg-beam{position:relative;height:2px;margin:0 8px;background:linear-gradient(90deg,var(--tele),var(--disc));opacity:.35}
.tg-beam span{position:absolute;top:-5px;left:0;width:12px;height:12px;border-radius:50%;background:var(--disc);box-shadow:0 0 14px var(--disc);animation:tgBeam 2s 1.6s cubic-bezier(.5,0,.5,1) infinite;opacity:0}
@keyframes tgBeam{0%{left:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{left:calc(100% - 12px);opacity:0}}
.tg-card{padding:18px}
.tg-card-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.tg-card-head .ct-icon{width:20px;height:20px;color:var(--disc)}
.tg-card-head b{flex:1;font-family:'Manrope';font-size:16px}
.tg-unrev{font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:#fdf2df;color:#a3640a}
.tg-card dl{margin:10px 0 0;display:flex;flex-direction:column}
.tg-card dl div{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:9px 0;border-bottom:1px dashed #e3e8f2;opacity:0;transform:translateX(10px);transition:opacity .45s,transform .45s;transition-delay:calc(var(--j)*.18s + 2.2s)}
.tg-stage.is-in .tg-card dl div{opacity:1;transform:none}
.tg-card dt{font-size:12px;font-weight:700;color:#8a96ab;text-transform:uppercase;letter-spacing:.06em}
.tg-card dd{margin:0;font-size:13.5px;color:#1c2b45}
.tg-card code{font-family:var(--mono);font-size:12.5px}
.tg-fig{font-size:12px;color:#8a96ab;margin-top:16px!important}

/* Proof row */
.tg-proof{background:#fff;border-bottom:1px solid var(--line)}
.tg-proof-in{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.tg-proof-in>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:26px 22px}
.tg-proof-in>div+div{border-left:1px solid var(--line)}
.tg-proof .ct-icon{grid-row:span 2;width:38px;height:38px;padding:9px;border-radius:12px;background:linear-gradient(135deg,#e6f4fc,#ecedfe);color:var(--disc)}
.tg-proof b{font-family:'Manrope';font-size:20px;font-weight:800;color:#0b1a3a}
.tg-proof span{font-size:13.5px;color:var(--mute)}

/* Anatomy */
.tg-anat{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center}
.tg-anat-msg{position:relative;padding:28px;border-radius:22px;background:#fff;border:1px solid #dfe8f5;box-shadow:0 30px 60px -40px rgba(34,80,160,.45)}
.tg-anat-top{display:flex;align-items:center;gap:12px}
.tg-anat-top .tg-ava{background:linear-gradient(135deg,var(--tele),var(--disc));color:#fff}
.tg-anat-top b{display:block;font-size:15px}.tg-anat-top small{font-size:12.5px;color:var(--mute)}
.tg-anat-top time{margin-left:auto;font-family:var(--mono);font-size:12.5px;color:var(--mute)}
.tg-anat-msg>p{margin-top:16px!important;font-size:18px;line-height:1.55;color:#1c2b45}
.tg-anat-msg mark{background:rgba(34,158,217,.16);color:#0b5c84;font-family:var(--mono);font-size:15px;padding:1px 5px;border-radius:5px}
.tg-anat-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px dashed #dfe8f5;font-size:12.5px;color:var(--mute)}
.tg-anat-foot code{font-family:var(--mono);color:var(--disc)}
.tg-pin{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%) scale(0);width:26px;height:26px;border-radius:50%;background:var(--disc);color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;box-shadow:0 0 0 5px rgba(88,101,242,.18);transition:transform .45s cubic-bezier(.3,1.6,.5,1);z-index:2}
.tg-anat.is-in .tg-pin{transform:translate(-50%,-50%) scale(1)}
.tg-anat.is-in .tg-pin:nth-child(2){transition-delay:.15s}.tg-anat.is-in .tg-pin:nth-child(3){transition-delay:.3s}.tg-anat.is-in .tg-pin:nth-child(4){transition-delay:.45s}.tg-anat.is-in .tg-pin:nth-child(5){transition-delay:.6s}
.tg-legend{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;counter-reset:l}
.tg-legend li{counter-increment:l;display:grid;grid-template-columns:30px 1fr;column-gap:12px}
.tg-legend li:before{content:counter(l);grid-row:span 2;width:26px;height:26px;border-radius:50%;background:#ecedfe;color:var(--disc);font-size:12px;font-weight:800;display:grid;place-items:center}
.tg-legend b{font-size:15px}.tg-legend span{font-size:14px;color:var(--mute);line-height:1.5}

/* Versions */
.tg-versions{background:var(--sky)}
.tg-versions-in{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:center}
.tg-versions h2,.tg-watch h2{font-size:clamp(30px,3.6vw,44px);line-height:1.08;font-weight:800;color:#0b1a3a}
.tg-versions-copy p,.tg-watch-copy p{color:#4d5d7a;font-size:17px;line-height:1.65;margin-top:16px}
.tg-diff{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.tg-ver{padding:18px 20px;border-radius:16px;background:#fff;border:1px solid #dfe8f5}
.tg-ver small{font-size:12px;color:var(--mute)}
.tg-ver small code{font-family:var(--mono);color:var(--disc)}
.tg-ver p{margin-top:8px!important;font-size:16px;color:#1c2b45}
.tg-ver del{background:#fde8ea;color:#b4232f;text-decoration-thickness:2px;font-family:var(--mono);font-size:14px;padding:1px 4px;border-radius:4px}
.tg-ver ins{background:#e3f6ee;color:#0d7a50;text-decoration:none;font-family:var(--mono);font-size:14px;padding:1px 4px;border-radius:4px}
.tg-ver-new{border-color:#c9cdfb;box-shadow:0 20px 40px -30px rgba(88,101,242,.6)}
.tg-arrow{align-self:center;font-family:var(--mono);font-size:12.5px;color:var(--disc)}
.tg-diff-note{font-size:13.5px;color:#4d5d7a;font-weight:600;text-align:center}

/* Custody chain */
.tg-custody{background:radial-gradient(700px 380px at 85% 10%,rgba(88,101,242,.3),transparent 60%),#0b1230;color:#fff}
.tg-custody-in{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:center}
.tg-custody h2{font-size:clamp(30px,3.6vw,46px);line-height:1.08;font-weight:800}
.tg-custody-copy p{color:#b4bde0;font-size:17px;line-height:1.65;margin-top:16px}
.tg-chain{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:22px}
.tg-chain li{position:relative;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);opacity:0;transform:translateY(12px);transition:opacity .5s,transform .5s;transition-delay:calc(var(--i)*.3s + .2s)}
.tg-chain.is-in li{opacity:1;transform:none}
.tg-chain li+li:before{content:"";position:absolute;left:34px;top:-24px;width:14px;height:24px;border:3px solid #7b86f7;border-radius:8px;background:transparent}
.tg-chain li b{display:block;font-family:'Manrope';font-size:15.5px}
.tg-chain li span{font-size:13.5px;color:#b4bde0}
.tg-chain code{font-family:var(--mono);font-size:12px;line-height:1.6;color:#a5adf9;text-align:right;white-space:nowrap}
.tg-chain code em{font-style:normal;color:#6c76b8}

/* Review states */
.tg-states{display:flex;align-items:center;gap:0}
.tg-state{position:relative;flex:1;padding:22px;border-radius:18px;background:#fff;border:1px solid var(--line)}
.tg-state>span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ecedfe;color:var(--disc);font-size:12.5px;font-weight:800;margin-bottom:10px}
.tg-state b{display:block;font-family:'Manrope';font-size:17px}
.tg-state p{font-size:14px;color:var(--mute);line-height:1.5;margin-top:4px}
.tg-s1{border-color:#f5d48a;background:#fffbeb}
.tg-flow{width:46px;height:2px;background:repeating-linear-gradient(90deg,var(--disc) 0 6px,transparent 6px 11px);flex:none;animation:tgDash 1s linear infinite}
@keyframes tgDash{to{background-position:22px 0}}
.tg-fork{flex:1.2;display:flex;flex-direction:column;gap:10px}
.tg-s3{border-color:#bfe8d4;background:#f3fbf7}.tg-s4{border-color:#f3c9ce;background:#fff7f8}

/* Watch */
.tg-watch{background:var(--sky)}
.tg-watch-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.tg-watch-card{display:grid;grid-template-columns:150px 1fr;gap:26px;align-items:center;padding:28px;border-radius:24px;background:#fff;border:1px solid #dfe8f5;box-shadow:0 30px 60px -40px rgba(34,80,160,.45)}
.tg-ring{position:relative}
.tg-ring svg{width:150px;height:150px;transform:rotate(-90deg)}
.tg-ring circle{fill:none;stroke:#e7eefb;stroke-width:9}
.tg-ring .tg-ring-v{stroke:var(--disc);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100}
.tg-watch-card.is-in .tg-ring-v{animation:tgRing 6s linear infinite}
@keyframes tgRing{to{stroke-dashoffset:0}}
.tg-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tg-ring b{font-family:'Manrope';font-size:38px;font-weight:800;line-height:1;color:#0b1a3a}
.tg-ring span{font-size:12px;color:var(--mute);text-transform:uppercase;letter-spacing:.1em}
.tg-watch-card ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.tg-watch-card li b{display:block;font-size:15px}
.tg-watch-card li span{font-size:13.5px;color:var(--mute);line-height:1.5}

/* FAQ pills */
.tg-faq .hx-head-split>p a{color:var(--disc);font-weight:650;text-decoration:none}
.tg-faq-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.tg-faq-list details{border-radius:16px;background:#fff;border:1px solid #dfe8f5;padding:0 20px;transition:border-color .2s,box-shadow .2s}
.tg-faq-list details[open]{border-color:#c9cdfb;box-shadow:0 20px 40px -30px rgba(88,101,242,.5)}
.tg-faq-list summary{list-style:none;cursor:pointer;padding:18px 28px 18px 0;position:relative;font-family:'Manrope';font-weight:750;font-size:16px;color:#0b1a3a}
.tg-faq-list summary::-webkit-details-marker{display:none}
.tg-faq-list summary:after{content:"+";position:absolute;right:0;top:14px;font-size:22px;font-weight:400;color:var(--disc);transition:transform .3s}
.tg-faq-list details[open] summary:after{transform:rotate(45deg)}
.tg-faq-list details p{padding:0 0 18px;font-size:15px;color:#4d5d7a;line-height:1.6}

@media (max-width:1100px){
  .tg-stage{grid-template-columns:1fr;gap:0;max-width:560px}
  .tg-beam{width:2px;height:60px;margin:0 auto;background:linear-gradient(180deg,var(--tele),var(--disc))}
  .tg-beam span{left:-5px!important;animation-name:tgBeamV}
  @keyframes tgBeamV{0%{top:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{top:calc(100% - 12px);opacity:0}}
  .tg-anat,.tg-versions-in,.tg-custody-in,.tg-watch-in{grid-template-columns:1fr}
  .tg-proof-in{grid-template-columns:1fr 1fr}
  .tg-proof-in>div:nth-child(3){border-left:0}
  .tg-proof-in>div:nth-child(n+3){border-top:1px solid var(--line)}
  .tg-states{flex-direction:column;align-items:stretch}
  .tg-flow{width:2px;height:28px;margin:0 auto;background:repeating-linear-gradient(180deg,var(--disc) 0 6px,transparent 6px 11px)}
}
@media (max-width:700px){
  .tg-hero{padding:46px 0 70px}
  .tg-hero h1{font-size:36px}
  .tg-bubbles{display:none}
  .tg-card dl div{grid-template-columns:1fr;gap:2px}
  .tg-proof-in{grid-template-columns:1fr}
  .tg-proof-in>div+div{border-left:0;border-top:1px solid var(--line)}
  .tg-anat-msg{padding:22px 18px}
  .tg-anat-msg>p{font-size:16px}
  .tg-pin{display:none}
  .tg-legend li:before{display:none}
  .tg-legend li{grid-template-columns:1fr}
  .tg-chain li{flex-direction:column;align-items:flex-start}
  .tg-chain code{text-align:left}
  .tg-watch-card{grid-template-columns:1fr;justify-items:center;text-align:center}
  .tg-faq-list{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.tg-bubbles i,.tg-beam span,.tg-flow,.tg-hit mark{animation:none}}
