:root {
  --venny: #4147d5;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.10);
  --panel: rgba(255,255,255,0.86);
  --bg: #f7f8ff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--ink); background: radial-gradient(circle at top left, rgba(65,71,213,.14), transparent 34rem), linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
a { color: inherit; }
button, input { font: inherit; }
.page { min-height: 100vh; padding: 28px; padding-bottom: 84px; }
.shell { max-width: 1180px; margin: 0 auto; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:36px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark { width:42px; height:42px; border-radius:14px; background:var(--venny); color:#fff; display:grid; place-items:center; font-weight:900; letter-spacing:-.05em; box-shadow:0 14px 34px rgba(65,71,213,.24); }
.brand-text strong { display:block; font-size:16px; letter-spacing:-.02em; }
.brand-text span { color:var(--muted); font-size:13px; }
.nav { display:flex; gap:10px; flex-wrap:wrap; }
.nav a, .small-button { border:1px solid var(--line); background:rgba(255,255,255,.78); border-radius:999px; padding:10px 14px; text-decoration:none; color:#1f2937; font-weight:700; font-size:14px; }
.nav a:hover, .small-button:hover { border-color: rgba(65,71,213,.35); color: var(--venny); }
.hero { display:grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap:34px; align-items:center; }
.hero-card, .panel, .auth-card, .chat-card { background:var(--panel); border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow); backdrop-filter: blur(16px); }
.hero-card { padding:44px; }
.eyebrow { color:var(--venny); font-weight:900; text-transform:uppercase; letter-spacing:.14em; font-size:12px; margin:0 0 12px; }
h1 { font-size:clamp(42px, 6vw, 84px); line-height:.92; letter-spacing:-.07em; margin:0 0 22px; }
h2 { font-size:clamp(28px, 4vw, 48px); line-height:1; letter-spacing:-.05em; margin:0 0 16px; }
h3 { margin:0; letter-spacing:-.03em; }
.lede { color:#475467; font-size:18px; line-height:1.62; margin:0 0 26px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; }
.button { border:0; border-radius:16px; padding:13px 17px; font-weight:900; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.button-primary { background:var(--venny); color:#fff; box-shadow:0 12px 28px rgba(65,71,213,.22); }
.button-dark { background:#111827; color:#fff; }
.button-soft { background:#eef0ff; color:var(--venny); }
.button-danger { background:#fee4e2; color:#b42318; }
.button:disabled { opacity:.55; cursor:not-allowed; }
.showcase { padding:24px; display:grid; gap:16px; }
.showcase img { width:100%; max-height:230px; object-fit:contain; }
.app-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:22px; margin-top:20px; }
.app-card { background:#fff; border:1px solid var(--line); border-radius:28px; padding:24px; text-decoration:none; display:flex; flex-direction:column; min-height:310px; transition:.2s ease; box-shadow:0 18px 45px rgba(17,24,39,.07); }
.app-card:hover { transform:translateY(-3px); border-color:rgba(65,71,213,.38); box-shadow:0 24px 60px rgba(17,24,39,.12); }
.app-logo { height:94px; display:flex; align-items:center; justify-content:flex-start; margin-bottom:20px; }
.app-logo img { max-width:220px; max-height:86px; object-fit:contain; }
.app-card p { color:var(--muted); line-height:1.55; }
.app-card span { margin-top:auto; color:var(--venny); font-weight:900; }
.footer-logo { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); height: 30px; max-width: 180px; width:auto; object-fit:contain; opacity:.84; z-index:50; pointer-events:none; }
.auth-layout { min-height: calc(100vh - 140px); display:grid; place-items:center; }
.auth-card { width:min(460px, 100%); padding:30px; }
.form { display:grid; gap:14px; }
.field { display:grid; gap:7px; color:#344054; font-weight:800; font-size:13px; }
.input, input, textarea { width:100%; border:1px solid rgba(17,24,39,.16); border-radius:14px; padding:12px 13px; background:#fff; color:#111827; outline:none; }
.input:focus, input:focus, textarea:focus { border-color:var(--venny); box-shadow:0 0 0 4px rgba(65,71,213,.10); }
.notice { border-radius:14px; padding:12px 14px; font-size:14px; margin:12px 0 0; }
.notice.error { background:#fff1f3; color:#b42318; border:1px solid #fecdd6; }
.notice.success { background:#ecfdf3; color:#067647; border:1px solid #abefc6; }
.app-shell { display:grid; grid-template-columns: 330px minmax(0,1fr); gap:18px; height: calc(100vh - 124px); min-height:620px; }
.sidebar, .workspace { background:rgba(255,255,255,.92); border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow); overflow:hidden; }
.sidebar { display:flex; flex-direction:column; }
.side-head { padding:18px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.side-head img { max-height:48px; max-width:150px; object-fit:contain; }
.list { overflow:auto; padding:12px; display:grid; gap:10px; }
.list-button { width:100%; text-align:left; background:#fff; border:1px solid var(--line); border-radius:18px; padding:14px; cursor:pointer; }
.list-button.active { border-color:rgba(65,71,213,.45); background:#f5f6ff; }
.list-button strong { display:block; font-size:14px; }
.list-button small { color:var(--muted); display:block; margin-top:4px; }
.workspace { display:flex; flex-direction:column; min-width:0; }
.workspace-head { padding:18px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.workspace-title strong { display:block; }
.workspace-title span { color:var(--muted); font-size:13px; }
.messages { flex:1; overflow:auto; padding:20px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(180deg,#fff,#fafbff); }
.message { max-width:min(620px,80%); border:1px solid var(--line); border-radius:18px; padding:12px 14px; background:#fff; align-self:flex-start; }
.message.mine { background:#eef0ff; border-color:rgba(65,71,213,.22); align-self:flex-end; }
.message small { color:var(--muted); display:block; margin-top:6px; }
.composer { border-top:1px solid var(--line); padding:14px; display:flex; gap:10px; }
.composer input { flex:1; }
.tabs { padding:12px; display:grid; grid-template-columns:1fr 1fr; gap:8px; border-bottom:1px solid var(--line); }
.tab { border:1px solid var(--line); border-radius:12px; padding:10px; background:#fff; font-weight:900; cursor:pointer; }
.tab.active { background:var(--venny); color:#fff; border-color:var(--venny); }
.search-area { padding:12px; border-bottom:1px solid var(--line); display:grid; gap:8px; }
.empty { color:var(--muted); padding:30px; text-align:center; }
.meta-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:13px; }
@media (max-width: 860px) {
  .page { padding:18px; padding-bottom:78px; }
  .topbar, .hero { display:block; }
  .nav { margin-top:16px; }
  .hero-card { padding:28px; }
  .app-grid { grid-template-columns:1fr; }
  .app-shell { grid-template-columns:1fr; height:auto; }
  .sidebar { min-height:360px; }
  .workspace { min-height:560px; }
}
