/* ═══════════════════════════════════════════════════════
   landing.css — Full-screen demo page
═══════════════════════════════════════════════════════ */

body.landing-page { overflow: hidden; height: 100vh; }
.landing-wrap { height: 100vh; }

.landing-main {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
}

/* ══════════════════════════════════
   SECTOR GATE — full screen overlay
══════════════════════════════════ */
.sector-gate {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 52px 32px 60px;
}

.sector-gate.is-hidden { display: none; }

.sector-gate-inner {
  width: 100%;
  max-width: 860px;
}

.sector-gate-top {
  text-align: center;
  margin-bottom: 44px;
  animation: fadeUp 0.45s ease both;
}

.sector-live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.63rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(240,165,0,0.25);
  background: var(--gold-dim); padding: 5px 14px;
  border-radius: 100px; margin-bottom: 22px;
}
.sector-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 7px var(--gold);
  animation: pulse 1.8s infinite;
}

.sector-gate-top h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.028em;
}

.sector-gate-top p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid of sector cards */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  animation: fadeUp 0.45s 0.08s ease both;
}

.sector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.sector-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(240,165,0,0.2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
}

.sector-card:hover {
  background: var(--surface2);
  border-color: rgba(240,165,0,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.sector-card:hover::after { transform: scaleX(1); }

.sector-card-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sector-card:hover .sector-card-icon {
  border-color: rgba(240,165,0,0.45);
  background: var(--gold-dim);
  box-shadow: 0 0 16px rgba(240,165,0,0.1);
}

.sector-card-icon svg {
  width: 18px; height: 18px;
  stroke: var(--text-muted); fill: none;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5;
  transition: stroke 0.2s;
}
.sector-card:hover .sector-card-icon svg { stroke: var(--gold); }

.sector-card-name {
  font-family: var(--font-display);
  font-size: 0.86rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.015em; line-height: 1.2;
}

.sector-card-hint {
  font-size: 0.7rem; color: var(--text-muted); line-height: 1.45;
  margin-top: -4px;
}

/* ══════════════════════════════════
   LEFT INFO PANEL
══════════════════════════════════ */
.info-panel {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  padding: 28px 24px 60px;
  position: relative;
}
.info-panel::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

/* Sector badge — shows selected sector, click to change */
.sector-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-dim);
  border: 1px solid rgba(240,165,0,0.28);
  border-radius: var(--r-xs);
  padding: 7px 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  width: 100%;
  animation: slideInLeft 0.35s ease both;
}
.sector-badge:hover { background: rgba(240,165,0,0.2); border-color: rgba(240,165,0,0.5); }

.sector-badge-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(240,165,0,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sector-badge-icon svg {
  width: 13px; height: 13px;
  stroke: var(--gold); fill: none;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5;
}

.sector-badge-info { flex: 1; }
.sector-badge-name {
  font-family: var(--font-mono); font-size: 0.63rem;
  font-weight: 700; color: var(--gold); letter-spacing: 0.06em;
  display: block;
}
.sector-badge-change {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--text-dim); display: block; margin-top: 1px;
}
.sector-badge-arrow {
  width: 16px; height: 16px;
  stroke: var(--text-dim); fill: none;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;
  flex-shrink: 0;
}

/* Panel heading */
.info-panel h1 {
  font-size: 1.3rem; font-weight: 900; color: var(--text);
  margin-bottom: 8px; letter-spacing: -0.025em;
  animation: fadeUp 0.35s 0.05s ease both;
}
.info-panel h1 em { font-style: normal; color: var(--gold); }
.info-panel .info-desc {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 22px; animation: fadeUp 0.35s 0.1s ease both;
}

/* ══════════════════════════════════
   SUGGESTIONS — PROMINENT BLOCK
══════════════════════════════════ */
.suggestions-block {
  background: var(--surface2);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
  animation: fadeUp 0.35s 0.14s ease both;
  flex-shrink: 0;
}

.suggestions-header {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface3);
}

.suggestions-header svg {
  width: 13px; height: 13px;
  stroke: var(--gold); fill: none;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;
  flex-shrink: 0;
}

.suggestions-header-text {
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
}

.suggestions-header-hint {
  font-family: var(--font-mono);
  font-size: 0.56rem; color: var(--text-dim); margin-left: auto;
}

.suggestions { display: flex; flex-direction: column; }

.sugg-btn {
  display: flex; align-items: center; gap: 12px;
  background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  color: var(--text);
  text-align: left; cursor: pointer; width: 100%;
  transition: background 0.16s, color 0.16s, padding-left 0.18s;
  line-height: 1.45;
}
.sugg-btn:last-child { border-bottom: none; }

.sugg-btn:hover {
  background: var(--gold-dim);
  padding-left: 22px;
}
.sugg-btn:hover .sugg-arrow { opacity: 1; transform: translateX(0); }

.sugg-arrow {
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.16s, transform 0.16s;
}
.sugg-arrow svg {
  width: 10px; height: 10px;
  stroke: var(--bg); fill: none;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;
}

/* Info features below suggestions */
.info-divider { height: 1px; background: var(--border); margin: 4px 0 18px; }

.info-features { display: flex; flex-direction: column; gap: 14px; animation: fadeUp 0.35s 0.2s ease both; }
.info-feat { display: flex; gap: 11px; align-items: flex-start; }
.info-feat-icon { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-feat-icon svg { width: 12px; height: 12px; stroke: var(--gold); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.info-feat-title { font-size: 0.77rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.info-feat-desc { font-size: 0.69rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════
   RIGHT CHAT
══════════════════════════════════ */
.chat-main {
  display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg); position: relative;
}
.chat-main::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none; z-index: 0;
}

.chat-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; border-bottom: 1px solid var(--border);
  background: rgba(4,4,13,0.85); backdrop-filter: blur(14px);
  flex-shrink: 0; position: relative; z-index: 2;
}
.chat-agent { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agent-avatar svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.agent-name { font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; color: var(--text); }
.agent-status { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.57rem; color: var(--green); margin-top: 1px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }

.lang-toggle { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xs); overflow: hidden; }
.lang-btn { padding: 6px 12px; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; color: var(--text-muted); background: transparent; border: none; cursor: pointer; transition: all 0.14s; }
.lang-btn.is-active { background: var(--gold); color: var(--bg); font-weight: 700; }

.chat-messages {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  position: relative; z-index: 1;
  scrollbar-width: thin; scrollbar-color: var(--surface3) transparent;
}

.msg-group { display: flex; flex-direction: column; max-width: 68%; gap: 4px; }
.msg-group.is-bot  { align-self: flex-start; align-items: flex-start; }
.msg-group.is-user { align-self: flex-end; align-items: flex-end; }
.msg-meta { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-dim); padding: 0 3px; }
.msg-bubble { padding: 11px 16px; border-radius: 14px; font-size: 0.87rem; line-height: 1.65; animation: msgIn 0.22s ease; }
.msg-bubble.is-bot  { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 3px 14px 14px 14px; }
.msg-bubble.is-user { background: var(--gold-dim); border: 1px solid rgba(240,165,0,0.2); color: #ffc233; border-radius: 14px 14px 3px 14px; }

.typing-group { align-self: flex-start; animation: msgIn 0.22s ease; }
.typing-indicator { display: flex; gap: 5px; align-items: center; padding: 13px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 3px 14px 14px 14px; width: fit-content; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typingBounce 1.3s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

.chat-empty {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; pointer-events: none;
}
.chat-empty-icon svg { width: 32px; height: 32px; stroke: var(--text-dim); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.3; }
.chat-empty-text { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.06em; opacity: 0.5; text-align: center; max-width: 200px; line-height: 1.6; }

.chat-input-wrap {
  flex-shrink: 0; border-top: 1px solid var(--border);
  background: rgba(4,4,13,0.85); backdrop-filter: blur(14px);
  position: relative; z-index: 2;
}
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; padding: 14px 22px; }
.chat-textarea {
  flex: 1; min-height: 44px; max-height: 110px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 15px;
  font-family: var(--font-body); font-size: 0.87rem; color: var(--text);
  resize: none; outline: none; line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-textarea:focus { border-color: rgba(240,165,0,0.35); box-shadow: 0 0 0 3px rgba(240,165,0,0.06); }
.chat-textarea::placeholder { color: var(--text-dim); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.chat-send-btn:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 4px 16px var(--gold-glow); }
.chat-send-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.chat-send-btn svg { width: 17px; height: 17px; fill: var(--bg); }
.chat-hint { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-dim); text-align: center; padding: 0 22px 10px; }

/* ── MOBILE ── */
@media (max-width:900px) {
  body.landing-page { overflow: auto; height: auto; }
  .landing-wrap { height: auto; }
  .landing-main { position: static; display: flex; flex-direction: column; }
  .sector-gate { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; padding: 28px 16px 40px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .sector-card { padding: 16px 14px; }
  .info-panel { padding: 22px 16px 50px; max-height: none; overflow: visible; }
  .info-panel::after { display: none; }
  .chat-main { height: 70vh; min-height: 440px; }
}
