﻿* { margin: 0; box-sizing: border-box; }
body { background: #050505; color: #fafafa; font-family: Inter, system-ui, sans-serif; min-height: 100vh; }
#fluid { position: fixed; inset: 0; z-index: 0; }
main { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 96px 24px 64px; }
.badge { display: inline-block; padding: 4px 12px; border: 1px solid rgba(16,185,129,.4); border-radius: 999px; color: #10B981; font-size: 13px; margin-bottom: 20px; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.sub { color: #a1a1aa; font-size: 18px; margin: 20px 0 32px; max-width: 520px; }
.cta { background: #10B981; color: #052e22; border: none; padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 0 24px rgba(16,185,129,.35); transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(16,185,129,.5); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 64px; }
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; transition: border-color .2s; }
.card:hover { border-color: rgba(16,185,129,.5); }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: #a1a1aa; font-size: 14px; }

#chatBtn { position: fixed; bottom: 24px; right: 24px; z-index: 10; width: 64px; height: 64px; border-radius: 50%; border: none; background: #10B981; color: #052e22; cursor: pointer; box-shadow: 0 0 24px rgba(16,185,129,.4); transition: transform .2s; }
#chatBtn:hover { transform: scale(1.08); }
#chatBtn svg { width: 28px; height: 28px; }
#chatPanel { position: fixed; bottom: 100px; right: 24px; z-index: 10; width: 340px; height: 440px; background: #0f0f0f; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
#chatPanel.open { display: flex; animation: chatIn .25s ease-out; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-head { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
#msgs { flex: 1; overflow-y: auto; padding: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 12px; max-width: 85%; line-height: 1.4; white-space: pre-wrap; }
.msg.user { background: rgba(255,255,255,.08); align-self: flex-end; }
.msg.bot { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); align-self: flex-start; }
#inp { background: transparent; border: none; border-top: 1px solid rgba(255,255,255,.08); padding: 14px; color: #fafafa; outline: none; font-size: 14px; }
#inp:focus { border-top-color: #10B981; }

@media (max-width: 640px) {
  main { padding: 64px 16px 48px; }
  .sub { font-size: 16px; }
  #chatPanel { right: 12px; left: 12px; width: auto; height: 60vh; bottom: 96px; }
  #chatBtn { bottom: 16px; right: 16px; }
  .cards { grid-template-columns: 1fr; }
}

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(16,185,129,.4); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16,185,129,.7); }
* { scrollbar-width: thin; scrollbar-color: rgba(16,185,129,.4) #0a0a0a; }

.chat-head { display: flex; justify-content: space-between; align-items: center; }
#collapseBtn { background: none; border: none; color: #a1a1aa; cursor: pointer; font-size: 26px; line-height: 1; padding: 4px 10px; transition: color .2s, transform .2s; }
#collapseBtn:hover { color: #10B981; transform: scale(1.2); }
#chatPanel.closing { animation: chatOut .2s ease-in forwards; }
@keyframes chatOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }
