﻿/* JailBreaked AI вЂ” Premium Light Theme (Hydra-inspired) */

:root {
  --bg: #f6f8fd;
  --bg-alt: #eef2fb;
  --bg-warm: #f8f6ff;
  --bg-deep: #f6f8fd;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: rgba(6, 214, 160, 0.06);
  --border: rgba(15, 23, 41, 0.07);
  --border-h: rgba(15, 23, 41, 0.12);
  --text-1: #0c1222;
  --text-2: #3e4a63;
  --text-3: #7b879e;
  --teal: #06d6a0;
  --teal-d: #05b588;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --purple-d: #7c3aed;
  --accent: #06d6a0;
  --accent-2: #8b5cf6;
  --accent-3: #e879f9;
  --accent-soft: rgba(6, 214, 160, 0.08);
  --glow: rgba(6, 214, 160, 0.15);
  --glow-purple: rgba(139, 92, 246, 0.12);
  --glow-soft: rgba(6, 214, 160, 0.08);
  --blue: #22d3ee;
  --blue-soft: rgba(6, 214, 160, 0.1);
  --neon-cyan: #06d6a0;
  --neon-purple: #8b5cf6;
  --neon-magenta: #e879f9;
  --grad: linear-gradient(135deg, var(--teal), var(--cyan), var(--purple));
  --grad-btn: linear-gradient(135deg, var(--teal-d), #0bb8a0, var(--teal));
  --grad-text: linear-gradient(135deg, var(--teal), var(--purple), #e879f9);
  --grad-neon: linear-gradient(135deg, #7b5cff, #00d4ff);
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04);
  --shadow: 0 2px 8px rgba(15, 23, 41, 0.05), 0 0 1px rgba(15, 23, 41, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 41, 0.07);
  --shadow-lg: 0 12px 36px rgba(15, 23, 41, 0.09);
  --shadow-xl: 0 24px 48px rgba(15, 23, 41, 0.1);
  --shadow-teal: 0 8px 30px rgba(6, 214, 160, 0.15);
  --radius: 16px;
  --sidebar-w: 288px;
  --topbar-h: 68px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-h: 'Space Grotesk', var(--font);
  --font-m: 'JetBrains Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg-deep);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100dvh;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 41, 0.12) transparent;
}

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 41, 0.12);
  border-radius: 3px;
}

body.chat-mode {
  overflow: hidden;
  height: 100dvh;
}

.hidden { display: none !important; }

::selection { background: rgba(6, 214, 160, 0.15); color: var(--text-1); }

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
textarea { font: inherit; color: inherit; border: none; background: none; resize: none; outline: none; }
a { color: inherit; text-decoration: none; }

/* в•ђв•ђв•ђ PREMIUM AMBIENT BACKGROUND вЂ” Light в•ђв•ђв•ђ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 40%, #f3f0ff 100%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}

.bg-orb-1 {
  width: min(650px, 75vw);
  height: min(650px, 75vw);
  top: -12%;
  right: -12%;
  background: rgba(6, 214, 160, 0.14);
  animation: blobFloat 18s ease infinite;
}

.bg-orb-2 {
  width: min(550px, 65vw);
  height: min(550px, 65vw);
  bottom: -8%;
  left: -10%;
  background: rgba(139, 92, 246, 0.12);
  animation: blobFloat 22s ease infinite reverse;
}

.bg-orb-3 {
  width: min(400px, 50vw);
  height: min(400px, 50vw);
  top: 35%;
  left: 55%;
  background: rgba(34, 211, 238, 0.1);
  animation: blobFloat 15s ease infinite 3s;
}

.bg-horizon { display: none; }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 41, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 41, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 72%);
  opacity: 0.35;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.bg-vignette { display: none; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb, .bg-grid, .hero-badge, .console-dot { animation: none; }
  .welcome-inner::before { animation: none; }
}

/* в•ђв•ђв•ђ AUTH MODAL в•ђв•ђв•ђ */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(246, 248, 253, 0.72);
  backdrop-filter: blur(12px) saturate(1.2);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.auth-close:hover { color: var(--text-1); background: var(--surface-2); }

body.auth-open { overflow: hidden; }

.auth-gate.auth-exit {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.auth-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.08) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  animation: fadeUp 0.4s var(--ease) both;
  max-height: 90dvh;
  overflow-y: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(6, 214, 160, 0.12), 0 2px 8px rgba(15, 23, 41, 0.06);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.auth-brand h1 {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-tagline {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}

.auth-card h2 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}

.auth-card > p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.55;
}

.auth-warn {
  color: var(--text-3) !important;
  font-size: 0.82rem !important;
  border-left: 2px solid var(--border-h);
  padding-left: 12px;
}

.auth-features {
  list-style: none;
  margin-bottom: 24px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 6px 0;
}

.auth-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(6, 214, 160, 0.35);
  flex-shrink: 0;
}

.btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(6, 214, 160, 0.2);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 214, 160, 0.28);
}

.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  padding: 12px 20px;
  color: var(--text-2);
  font-size: 0.88rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-h);
  background: var(--surface);
  margin-top: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-d);
  background: rgba(6, 214, 160, 0.04);
}
.btn-sm { width: auto; padding: 8px 16px; font-size: 0.82rem; margin-bottom: 16px; }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 16px 0;
  cursor: pointer;
}

.auth-check input { margin-top: 3px; accent-color: var(--teal); }

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.auth-actions .btn-ghost { flex: 1; margin-top: 0; }
.auth-actions .btn-primary { flex: 2; width: auto; }

.auth-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin: 12px 0;
}

/* Seed grid */
.restore-code-input {
  width: 100%;
  margin: 12px 0;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-1);
  background: var(--bg-alt);
  border: 1px solid var(--border-h);
  border-radius: 10px;
  outline: none;
}
.restore-code-input:focus {
  border-color: rgba(6, 214, 160, 0.4);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1);
}
.access-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px 16px;
  margin: 14px 0;
  color: var(--teal-d);
  background: rgba(6, 214, 160, 0.06);
  border: 1px solid rgba(6, 214, 160, 0.15);
  border-radius: 12px;
  user-select: all;
  word-break: break-all;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.seed-word {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.seed-num {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--text-3);
  min-width: 16px;
}

.seed-text {
  font-family: var(--font-m);
  font-size: 0.82rem;
  color: var(--text-1);
}

/* Verify grid */
.verify-progress {
  font-family: var(--font-m);
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.verify-word {
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-m);
  font-size: 0.82rem;
  color: var(--text-1);
  transition: all 0.2s;
}

.verify-word:hover:not(.used) {
  border-color: var(--border-h);
  background: var(--surface-2);
}

.verify-word.used { opacity: 0.25; pointer-events: none; }
.verify-word.correct { border-color: rgba(255,255,255,0.3); }

/* Restore grid */
.restore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.restore-input {
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-m);
  font-size: 0.82rem;
  color: var(--text-1);
  text-align: center;
}

.restore-input:focus { border-color: var(--border-h); }
.restore-input::placeholder { color: var(--text-3); font-size: 0.75rem; }

/* в•ђв•ђв•ђ APP LAYOUT в•ђв•ђв•ђ */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 100dvh;
}

body.chat-mode .app {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(1.4);
  position: sticky;
  top: 0;
  align-self: stretch;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

body.chat-mode .sidebar {
  height: 100%;
  max-height: 100%;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 12px 8px;
  position: relative;
  flex-shrink: 0;
}

.btn-new-chat {
  margin: 0 14px 12px;
  width: calc(100% - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(6, 214, 160, 0.2);
  background: rgba(6, 214, 160, 0.06);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-1);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s;
  flex-shrink: 0;
}

.sidebar-close-btn {
  display: flex;
  flex-shrink: 0;
  margin-bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(6, 214, 160, 0.18), 0 2px 8px rgba(15, 23, 41, 0.06);
}

.brand-mark { display: none; }

.btn-new-chat:hover {
  background: rgba(6, 214, 160, 0.1);
  border-color: rgba(6, 214, 160, 0.35);
  box-shadow: var(--shadow-teal);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-icon {
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.nav-item span { flex: 1; min-width: 0; }

.nav-item:hover {
  background: rgba(6, 214, 160, 0.06);
  color: var(--text-2);
  border-color: var(--border);
}

.nav-item:hover .nav-icon { opacity: 0.85; }

.nav-item.active {
  background: rgba(6, 214, 160, 0.08);
  color: var(--text-1);
  border-color: rgba(6, 214, 160, 0.15);
  box-shadow: inset 3px 0 0 var(--teal);
}

.nav-item.active .nav-icon { opacity: 1; }

.sidebar-spotlight {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

body.chat-mode .sidebar-spotlight {
  display: none;
}

.spotlight-item {
  display: flex;
  gap: 10px;
  padding: 8px 4px;
  font-size: 0.78rem;
}

.spotlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px rgba(6, 214, 160, 0.4);
  margin-top: 6px;
  flex-shrink: 0;
}

.spotlight-item strong {
  display: block;
  color: var(--text-1);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.spotlight-item span {
  display: block;
  color: var(--text-3);
  line-height: 1.35;
}

.sidebar-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 0 12px;
  overflow: hidden;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 8px 4px;
  flex-shrink: 0;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 41, 0.12) transparent;
}

.chat-list::-webkit-scrollbar {
  width: 5px;
}

.chat-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 41, 0.12);
  border-radius: 4px;
}

.chat-list::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 41, 0.2);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}

.icon-btn:hover { color: var(--text-1); background: var(--bg-alt); border-color: var(--border-h); }

.brand-mark { display: none; }

.chat-item-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
  transition: background 0.15s;
}

.chat-item-wrap:hover { background: var(--bg-alt); }
.chat-item-wrap:hover .chat-item-del { opacity: 1; }

.chat-item {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s;
}

.chat-item:hover, .chat-item.active { background: transparent; color: var(--text-1); }
.chat-item-wrap:has(.chat-item.active) {
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.12);
}
.chat-item-wrap:has(.chat-item.active) .chat-item { color: var(--text-1); }

.chat-item-del {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-right: 4px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.chat-item-del:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

.sidebar-empty {
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 8px 4px;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  flex-shrink: 0;
  background: rgba(246, 248, 253, 0.6);
}

.sidebar-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.sidebar-legal a {
  font-size: 0.72rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.sidebar-legal a:hover { color: var(--text-1); }

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-link {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.sidebar-link:hover { color: var(--text-1); }

.status-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}

.status-pill.ok { background: var(--teal); box-shadow: 0 0 10px rgba(6, 214, 160, 0.35); }
.status-pill.err { background: #f87171; }

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.chat-mode .main {
  min-height: 0;
  overflow: hidden;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(246, 248, 253, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15, 23, 41, 0.04);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 214, 160, 0.35), rgba(139, 92, 246, 0.35), transparent);
  pointer-events: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  justify-self: start;
}

.topbar .topbar-left .icon-btn { display: none; }

.topbar-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  border: 1px solid rgba(6, 214, 160, 0.2);
  background: rgba(6, 214, 160, 0.06);
  box-shadow: var(--shadow-sm);
}

.console-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(6, 214, 160, 0.45);
  animation: consolePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.console-label {
  font-family: var(--font-m);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

@keyframes consolePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(6, 214, 160, 0.45); }
  50% { opacity: 0.65; box-shadow: 0 0 4px rgba(6, 214, 160, 0.25); }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-signin {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: all 0.2s;
}

.btn-signin:hover { color: var(--text-1); border-color: var(--border-h); background: var(--surface); }

.model-tag {
  font-family: var(--font-m);
  font-size: 0.72rem;
  color: var(--text-3);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Welcome вЂ” hero only, no landing below */
.welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 48px;
  min-height: calc(100dvh - var(--topbar-h));
}

.info-view {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--topbar-h));
  overflow: hidden;
}

.info-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px 48px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.info-page {
  animation: pageIn 0.28s var(--ease) both;
}

.info-page.hidden {
  display: none;
}

.info-page .l-section {
  padding: 32px 0 40px;
}

.info-page .l-section:first-child {
  padding-top: 8px;
  border-top: none;
}

.info-footer {
  flex-shrink: 0;
  margin-top: 0;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stage {
  min-height: auto;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, 95vw);
  height: 320px;
  transform: translate(-50%, -45%);
  background: radial-gradient(ellipse at center, rgba(6, 214, 160, 0.1) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.hero-stage > *:not(.hero-glow) {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
  background: rgba(123, 92, 255, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(123, 92, 255, 0.15);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 720px;
  background: var(--grad-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-3);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.55;
}

.hero-composer {
  width: 100%;
  max-width: 680px;
  margin-bottom: 28px;
}

.composer-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  backdrop-filter: blur(12px);
  transition: border-color 0.35s, box-shadow 0.35s;
  box-shadow: var(--shadow-md);
}

.composer-shell:focus-within {
  border-color: rgba(6, 214, 160, 0.35);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1), var(--shadow-lg);
}

.composer-shell textarea {
  width: 100%;
  padding: 22px 24px 12px;
  font-size: 1.05rem;
  color: var(--text-1);
  min-height: 56px;
  max-height: 200px;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  padding: 16px 0;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-val {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-hint {
  display: flex;
  justify-content: center;
  padding: 8px 0 32px;
  opacity: 0.4;
}
.scroll-hint span {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

.welcome-inner { display: none; }
.welcome h1 { /* legacy */ }
.welcome-sub { /* legacy */ }
.hero-badge { display: none; }

/* Composer */
.composer { width: 100%; }

.composer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: var(--shadow-md);
}

.composer-box:focus-within {
  border-color: rgba(6, 214, 160, 0.35);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1), var(--shadow-lg);
}

.composer textarea {
  width: 100%;
  padding: 18px 20px 8px;
  font-size: 1rem;
  color: var(--text-1);
  min-height: 52px;
  max-height: 200px;
}

.composer textarea::placeholder { color: var(--text-3); }

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px;
  gap: 8px;
}

.composer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.mode-select { position: relative; flex-shrink: 0; }

.model-select {
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: 240px;
}

.model-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: background 0.2s, border-color 0.2s;
}

.model-btn:hover { background: var(--surface-2); border-color: var(--border-h); color: var(--text-1); }

.model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
}

.model-btn-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}

.model-btn-name {
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.model-btn-provider { font-size: 0.68rem; color: var(--text-3); }
.model-btn-arrow { flex-shrink: 0; color: var(--text-3); display: flex; }

/* Model portal вЂ” fixed scroll */
.model-portal {
  z-index: 10000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  max-height: min(420px, calc(100dvh - 32px));
  overflow: hidden;
  animation: portalIn 0.18s var(--ease);
}

.model-portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.model-portal-title {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.model-portal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.model-portal-close:hover { background: var(--surface-2); color: var(--text-1); }

.model-portal-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
}

.model-search-input {
  flex: 1;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-1);
  font-size: 0.88rem;
  outline: none;
}

.model-portal-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 8px;
  min-height: 120px;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 41, 0.12) transparent;
}

.model-portal-list::-webkit-scrollbar { width: 8px; }
.model-portal-list::-webkit-scrollbar-track { background: transparent; }
.model-portal-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 41, 0.12);
  border-radius: 4px;
}
.model-portal-list::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 41, 0.2); }

.model-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.86rem;
}

.model-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-2);
  transition: background 0.12s;
}

.model-option:hover, .model-option.active { background: rgba(6, 214, 160, 0.06); color: var(--text-1); }

.model-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.model-option-name { font-weight: 600; color: var(--text-1); font-size: 0.88rem; }
.model-option-provider { font-size: 0.72rem; color: var(--text-3); }

.model-tag-mini {
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  flex-shrink: 0;
}

.model-tag-best { background: rgba(212, 165, 116, 0.12); color: #b8860b; border: 1px solid rgba(212, 165, 116, 0.25); }
.model-tag-popular { background: rgba(6, 214, 160, 0.1); color: var(--teal-d); border: 1px solid rgba(6, 214, 160, 0.2); }

.model-check { color: var(--text-1); font-size: 0.9rem; flex-shrink: 0; }

@keyframes portalIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Platform capabilities strip */
.platform-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.platform-item {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.platform-item:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.platform-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(123, 92, 255, 0.15);
  color: var(--purple);
  background: rgba(123, 92, 255, 0.06);
}

.platform-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.platform-title {
  font-family: var(--font-h);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.platform-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-3);
}

.mode-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: background 0.2s;
}

.mode-btn:hover { background: var(--surface-2); color: var(--text-1); }

.mode-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 130px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  z-index: 10;
}

.mode-select.open .mode-dropdown { display: block; }

.mode-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-2);
}

.mode-dropdown button:hover { background: var(--surface-2); color: var(--text-1); }

.send-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-neon);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(123, 92, 255, 0.25);
}

.send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.35), 0 0 40px rgba(0, 212, 255, 0.15);
}
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.composer-sticky {
  flex-shrink: 0;
  padding: 12px 24px 16px;
  background: linear-gradient(to top, rgba(246, 248, 253, 0.98) 60%, rgba(246, 248, 253, 0.85) 85%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.composer-sticky .composer-box,
.composer-sticky .composer-hint {
  max-width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.composer-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 8px;
}

/* Chat */
.chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 41, 0.12) transparent;
}

.chat-scroll::-webkit-scrollbar { width: 6px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 41, 0.12);
  border-radius: 3px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px 32px 48px;
}

.msg {
  display: flex;
  gap: 12px;
  animation: fadeUp 0.3s var(--ease) both;
  min-width: 0;
  max-width: 100%;
}

.msg-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.msg.user .msg-avatar { background: var(--surface-2); color: var(--text-2); }
.msg.assistant .msg-avatar { background: transparent; padding: 0; overflow: hidden; }

.msg-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.msg-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.msg-content {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.msg.user .msg-content {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(139, 92, 246, 0.06));
  border-color: rgba(6, 214, 160, 0.15);
}

.msg-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding: 14px;
  margin: 0;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: var(--font-m);
  font-size: 0.84rem;
  line-height: 1.5;
}

.code-block {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}

.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-copy {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-h);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.code-copy:hover {
  border-color: var(--teal);
  color: var(--teal-d);
  background: rgba(6, 214, 160, 0.04);
}

.code-copy.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

.msg-content code {
  font-family: var(--font-m);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.msg.typing:not(.thinking) .msg-content::after {
  content: 'в–‹';
  animation: blink 0.8s step-end infinite;
}

/* Thinking indicator */
.thinking-block {
  padding: 4px 0 8px;
  max-width: 520px;
}

.thinking-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.thinking-label {
  font-family: var(--font-m);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.thinking-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.4);
  animation: thinkingPulse 1.4s ease-in-out infinite;
}

.thinking-step {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
  min-height: 1.5em;
  transition: opacity 0.2s, transform 0.2s;
}

.thinking-step-out {
  opacity: 0;
  transform: translateY(4px);
}

.thinking-step-in {
  animation: thinkingStepIn 0.28s var(--ease) both;
}

.thinking-bar {
  margin-top: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.thinking-bar-fill {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(6, 214, 160, 0.5), transparent);
  animation: thinkingBar 1.6s ease-in-out infinite;
}

@keyframes thinkingPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes thinkingStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes thinkingBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes blink { 50% { opacity: 0; } }

.app.focus-mode .sidebar,
.app.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 25;
  min-height: 100dvh;
}

.app.focus-mode .topbar .topbar-left .icon-btn,
.app.sidebar-collapsed .topbar .topbar-left .icon-btn {
  display: flex;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.25);
  backdrop-filter: blur(4px);
  z-index: 15;
}

.overlay.visible { display: block; }

/* Prompt chips */
.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.prompt-chip {
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.prompt-chip:hover {
  border-color: rgba(6, 214, 160, 0.35);
  color: var(--text-1);
  background: rgba(6, 214, 160, 0.04);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Landing sections */
.landing-sections {
  width: 100%;
  margin: 0;
  text-align: left;
  border-top: 1px solid var(--border);
}

.l-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.5s var(--ease) both;
}

.l-section-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-warm) 100%);
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
}

.l-head { margin-bottom: 40px; text-align: center; }
.l-head h2 {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.l-head p { color: var(--text-2); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

.section-tag {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(123, 92, 255, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(123, 92, 255, 0.15);
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-h);
}

.feature-card:hover::before { opacity: 0.85; }

.feature-num {
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.feature-card p { font-size: 0.84rem; color: var(--text-3); line-height: 1.5; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 214, 160, 0.08);
  color: var(--teal-d);
  border: 1.5px solid rgba(6, 214, 160, 0.15);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 { font-size: 0.95rem; color: var(--text-1); margin-bottom: 6px; }
.step-card p { font-size: 0.84rem; color: var(--text-3); }

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.usecase-card {
  padding: 20px 22px;
  border-radius: 14px;
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.usecase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.usecase-card h3 { font-size: 0.92rem; color: var(--text-1); margin-bottom: 6px; }
.usecase-card p { font-size: 0.84rem; color: var(--text-3); }

.models-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.model-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
}

.model-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip);
}

.model-chip-name { font-weight: 600; color: var(--text-1); }
.model-chip-prov { font-size: 0.72rem; color: var(--text-3); }

.models-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--border-h);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-1);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 18px 14px;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.55;
}

.trust-section {
  text-align: center;
  padding: 48px 32px !important;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(6, 214, 160, 0.05), rgba(139, 92, 246, 0.06), rgba(34, 211, 238, 0.04));
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.08), transparent 70%);
  pointer-events: none;
}

.trust-section h2,
.trust-row,
.trust-section .btn-cta {
  position: relative;
  z-index: 1;
}
.trust-section h2 {
  font-family: var(--font-h);
  font-size: 1.3rem;
  color: var(--text-1);
  margin-bottom: 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.trust-row span {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-cta {
  padding: 14px 32px;
  font-size: 0.92rem;
  width: auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7b5cff, #00d4ff);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(123, 92, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.25s;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #7b5cff, #00d4ff, #7b5cff);
  border-radius: 14px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
  transition: opacity 0.3s, filter 0.3s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
}

.btn-cta:hover::before {
  opacity: 0.8;
  filter: blur(12px);
}

/* Footer */
.site-footer {
  margin-top: 32px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--bg-alt));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p { font-size: 0.84rem; color: var(--text-3); margin-top: 10px; max-width: 260px; }

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-disclaimer { color: var(--text-3); }

/* Language picker */
.lang-select { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-2);
  transition: all 0.2s;
}

.lang-btn:hover { background: var(--surface); color: var(--text-1); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  z-index: 100;
  box-shadow: var(--shadow-xl);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-2);
}

.lang-option:hover, .lang-option.active {
  background: var(--accent-soft);
  color: var(--text-1);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin: 0 auto;
  z-index: 2000;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xl);
}

.cookie-banner p { font-size: 0.84rem; color: var(--text-2); margin-bottom: 12px; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cookie-link { font-size: 0.82rem; color: var(--accent); margin-right: auto; }

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    z-index: 20;
    transition: transform 0.3s var(--ease);
    min-height: 0;
    height: 100dvh;
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .app.sidebar-collapsed .sidebar,
  .app.focus-mode .sidebar {
    position: fixed;
    transform: translateX(-100%);
  }

  .topbar .topbar-left .icon-btn { display: flex; }
  .seed-grid, .verify-grid, .restore-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-strip { grid-template-columns: 1fr; gap: 10px; }
  .platform-item { padding: 14px; }
  .features-grid, .steps-row { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .stat-div { display: none; }
  .hero-stage { min-height: auto; padding: 24px 0 40px; }
  .model-select { max-width: 100%; flex: 1; }
  .composer-tools { flex-wrap: wrap; }
}

/* ═══ Premium polish ═══ */
.hero-stage > *:not(.hero-glow) { animation: fadeUp 0.6s var(--ease) both; }
.hero-eyebrow { animation-delay: 0.05s; }
.hero-title { animation: fadeUp 0.6s var(--ease) 0.1s both, gradShift 6s ease infinite; }
.hero-sub { animation: fadeUp 0.6s var(--ease) 0.18s both; }
.hero-composer { animation: fadeUp 0.6s var(--ease) 0.26s both; }
.hero-stats { animation: fadeUp 0.6s var(--ease) 0.34s both; }
.prompt-row { animation: fadeUp 0.6s var(--ease) 0.42s both; }

.info-scroll::-webkit-scrollbar { width: 6px; }
.info-scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 41, 0.12); border-radius: 3px; }
.info-scroll { scrollbar-color: rgba(15, 23, 41, 0.12) transparent; }

.hero-stage { animation: none; }

.footer-col a:hover { color: var(--teal-d); }

.btn-signin:hover { border-color: var(--teal); color: var(--teal-d); }
