diff --git a/index.html b/index.html index efabf42..5d7ca91 100644 --- a/index.html +++ b/index.html @@ -1106,140 +1106,90 @@ } } - /* ── Chat Widget (floating bottom-right) ────────────── */ - .chat-fab { - position: fixed; - bottom: 24px; - right: 24px; - z-index: 9999; - width: 56px; - height: 56px; - border-radius: 28px; - background: var(--accent); - border: none; - cursor: pointer; - box-shadow: 0 4px 24px rgba(79, 142, 247, 0.35); + /* ── Chat Bar (inline below header) ────────────────── */ + .chat-bar { display: flex; - align-items: center; - justify-content: center; - font-size: 24px; - color: #fff; - transition: transform 0.2s, box-shadow 0.2s; + flex-direction: column; + align-items: flex-start; + margin-top: 60px; + padding: 0 24px; + max-width: var(--max-width); + margin-left: auto; + margin-right: auto; } - .chat-fab:hover { - transform: scale(1.08); - box-shadow: 0 6px 32px rgba(79, 142, 247, 0.5); - } - .chat-fab.open { - transform: scale(0.9); + .chat-bar-panel { + width: 340px; + max-width: 100%; + height: 300px; background: var(--bg-card); - border: 1px solid var(--border); - box-shadow: none; - } - .chat-widget { - position: fixed; - bottom: 92px; - right: 24px; - z-index: 9998; - width: 360px; - max-width: calc(100vw - 48px); - height: 460px; - max-height: calc(100vh - 140px); - background: var(--bg-card); - border: 1px solid var(--border); + border: 1px solid var(--accent); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,0.5); overflow: hidden; - display: flex; + display: none; flex-direction: column; - opacity: 0; - visibility: hidden; - transform: translateY(12px) scale(0.96); - transform-origin: bottom right; - transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; + margin-bottom: 8px; } - .chat-widget.open { - opacity: 1; - visibility: visible; - transform: translateY(0) scale(1); + .chat-bar-panel.open { + display: flex; } - .chat-header { + .chat-bar-input { display: flex; align-items: center; - gap: 10px; - padding: 16px 18px 12px; - border-bottom: 1px solid var(--border); + width: 340px; + max-width: 100%; + height: 36px; + background: var(--bg-inner); + border: 1px solid var(--border); + border-radius: 999px; + overflow: hidden; + flex-shrink: 0; + transition: border-color 0.25s, box-shadow 0.25s; } - .chat-header-avatar { - width: 32px; - height: 32px; - border-radius: 50%; - background: var(--accent-dim); + .chat-bar-input:focus-within { + border-color: var(--accent); + box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.15); + } + .chat-bar-toggle, + .chat-bar-send { + background: none; + border: none; + cursor: pointer; + height: 100%; + color: var(--accent); + padding: 0 10px; + font-size: 0.85rem; display: flex; align-items: center; justify-content: center; - font-size: 15px; - flex-shrink: 0; } - .chat-header-info { + .chat-bar-toggle { + border-right: 1px solid var(--border); + font-size: 0.8rem; + padding: 0 8px; + } + .chat-bar-send { + border-left: 1px solid var(--border); + } + .chat-bar-field { flex: 1; min-width: 0; - } - .chat-header-name { - font-weight: 600; - font-size: 13.5px; - color: var(--text); - } - .chat-header-status { - font-size: 11px; - color: var(--success); - display: flex; - align-items: center; - gap: 4px; - } - .chat-header-status::before { - content: ""; - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--success); - display: inline-block; - } - .chat-header-close { - background: none; + padding: 0 10px; border: none; - color: var(--text-muted); - cursor: pointer; - font-size: 16px; - padding: 4px; - line-height: 1; - border-radius: 6px; - transition: color 0.15s, background 0.15s; - } - .chat-header-close:hover { + outline: none; + background: transparent; + font: inherit; color: var(--text); - background: var(--bg-hover); - } - .chat-msgs { - flex: 1; - overflow-y: auto; - padding: 16px 18px; - display: flex; - flex-direction: column; - gap: 8px; + font-size: 0.78rem; } + .chat-bar-field::placeholder { color: var(--text-muted); } .chat-msg { max-width: 85%; - padding: 9px 14px; - border-radius: 14px; - line-height: 1.45; + padding: 8px 12px; + border-radius: 12px; + line-height: 1.4; word-wrap: break-word; - font-size: 13px; - animation: msgIn 0.2s ease; - } - @keyframes msgIn { - from { opacity: 0; transform: translateY(4px); } - to { opacity: 1; transform: translateY(0); } + font-size: 12.5px; } .chat-msg-bot { align-self: flex-start; @@ -1248,8 +1198,7 @@ } .chat-msg-user { align-self: flex-end; - background: var(--accent); - color: #fff; + background: var(--accent-dim); border-bottom-right-radius: 4px; } .chat-msg-thinking { @@ -1258,69 +1207,107 @@ border-bottom-left-radius: 4px; opacity: 0.6; } - .chat-input-row { + .chat-panel-header { display: flex; align-items: center; - gap: 8px; - padding: 12px 18px 16px; - border-top: 1px solid var(--border); - } - .chat-input-box { - flex: 1; - min-width: 0; - height: 40px; - padding: 0 14px; - border: 1px solid var(--border); - border-radius: 20px; - outline: none; - background: var(--bg-inner); - font: inherit; - color: var(--text); + justify-content: space-between; + padding: 12px 16px; + border-bottom: 1px solid var(--border); + font-weight: 600; font-size: 13px; - transition: border-color 0.2s; + color: var(--text); } - .chat-input-box:focus { - border-color: var(--accent); - } - .chat-input-box::placeholder { - color: var(--text-muted); - } - .chat-send-btn { - width: 40px; - height: 40px; - border-radius: 50%; - background: var(--accent); + .chat-panel-close { + background: none; border: none; + color: var(--text-muted); cursor: pointer; - color: #fff; - font-size: 16px; + font-size: 14px; + padding: 2px 6px; + line-height: 1; + } + .chat-panel-close:hover { color: var(--text); } + .chat-history { + flex: 1; + overflow-y: auto; + padding: 12px 16px; display: flex; + flex-direction: column; + gap: 8px; + } + @media (max-width: 700px) { + .chat-bar { display: none; } + } + + /* ══════════════════════════════════════════════════════════ + FOUNDER STORY + ══════════════════════════════════════════════════════════ */ + .story-card { + display: flex; + align-items: flex-start; + gap: 40px; + max-width: 760px; + margin: 0 auto; + background: var(--bg-card); + border: 1px solid var(--border-hi); + border-radius: var(--radius-card); + padding: 40px 36px; + box-shadow: var(--shadow); + } + .story-avatar { + flex-shrink: 0; + width: 100px; + height: 100px; + border-radius: 50%; + background: var(--accent-dim); + border: 2px solid var(--accent); + display: flex; + align-items: center; + justify-content: center; + font-size: 40px; + color: var(--accent); + overflow: hidden; + } + .story-avatar img { width: 100%; height: 100%; object-fit: cover; } + .story-body { flex: 1; } + .story-label { + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + color: var(--accent); + margin-bottom: 6px; + } + .story-body h2 { + margin-bottom: 16px; + font-size: 1.5rem; + } + .story-body p { + font-size: 14px; + line-height: 1.7; + color: var(--text-muted); + margin-bottom: 14px; + } + .story-body p strong { color: var(--text); } + .story-signoff { + font-style: italic; + color: var(--accent) !important; + margin-top: 8px; + font-weight: 500; + } + @media (max-width: 600px) { + .story-card { + flex-direction: column; align-items: center; - justify-content: center; - flex-shrink: 0; - transition: opacity 0.15s, transform 0.1s; - } - .chat-send-btn:hover { opacity: 0.85; } - .chat-send-btn:active { transform: scale(0.92); } - .chat-send-btn:disabled { - opacity: 0.4; - cursor: not-allowed; - } - @media (max-width: 500px) { - .chat-widget { - right: 12px; - bottom: 84px; - width: calc(100vw - 24px); - max-height: calc(100vh - 120px); - } - .chat-fab { - right: 12px; - bottom: 16px; - } + text-align: center; + gap: 24px; + padding: 28px 20px; } + .story-avatar { width: 72px; height: 72px; font-size: 28px; } + } - - + + - -