/* Cybernecs AI — Corporate Autonomous shell (loads after ai-mode.css) */
:root {
  --paper: #070a12;
  --paper2: #0c1220;
  --card: rgba(22, 32, 51, 0.72);
  --ink: #e8eefc;
  --ink60: rgba(232, 238, 252, 0.58);
  --rule: rgba(232, 238, 252, 0.12);
  --red: #ff5c5c;
  --blue: #315fff;
  --accent: #315fff;
  --accent-dark: #1e48e0;
  --glow: rgba(49, 95, 255, 0.28);
  --f-head: "DM Sans", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --mast: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }
body {
  min-height: 100svh;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(49, 95, 255, 0.28), transparent 55%),
    radial-gradient(800px 420px at 92% 4%, rgba(30, 72, 224, 0.18), transparent 48%),
    radial-gradient(600px 380px at 50% 100%, rgba(49, 95, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #070a12 0%, #0a101c 48%, #070a12 100%);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
button:focus-visible,
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.sdr-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Top bar */
.ai-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--mast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ai-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.ai-brand span {
  color: var(--accent);
  text-shadow: 0 0 24px var(--glow);
}
.ai-brand em {
  font-style: normal;
  color: var(--ink60);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.ai-top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ai-top-nav a {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink60);
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.ai-top-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.ai-top-nav a.is-cta {
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
}
.ai-top-nav a.is-cta:hover { background: var(--accent-dark); }

/* Shell */
body.is-ai-shell .ai-shell {
  padding-top: var(--mast);
  background: transparent;
  height: 100svh;
}
.ai-rail {
  border-right-color: var(--rule) !important;
  background: rgba(7, 10, 18, 0.35);
  backdrop-filter: blur(10px);
}
.ai-new {
  border-color: rgba(49, 95, 255, 0.45) !important;
  color: var(--ink) !important;
}
.ai-new:hover,
.ai-compose button[data-ai-send]:hover,
.ai-chips button:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.ai-compose {
  border-color: rgba(232, 238, 252, 0.22) !important;
  background: rgba(12, 18, 32, 0.88) !important;
  box-shadow: 0 0 0 1px rgba(49, 95, 255, 0.08), 0 18px 48px rgba(0, 0, 0, 0.35);
  max-width: 760px;
}
.ai-compose textarea { color: var(--ink) !important; }
.ai-compose textarea::placeholder { color: rgba(232, 238, 252, 0.38); }
.ai-compose button[data-ai-send] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 8px 28px rgba(49, 95, 255, 0.28);
  color: #fff !important;
}
.ai-compose button[data-ai-stop] {
  border-color: rgba(232, 238, 252, 0.28) !important;
  color: var(--ink) !important;
}
.ai-msg-actions button:hover {
  border-color: rgba(49, 95, 255, 0.5);
  background: rgba(49, 95, 255, 0.08);
}
.ai-chips button,
.ai-chips a {
  border-color: rgba(232, 238, 252, 0.2) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--ink) !important;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.ai-chips button:hover,
.ai-chips a:hover {
  transform: translateY(-1px);
}
.ai-agent.is-on {
  outline: 1px solid rgba(49, 95, 255, 0.5);
  background: rgba(49, 95, 255, 0.12) !important;
}
.ai-meet-live { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }

/* Stage: empty-state hero never crushed under chips */
.ai-stage {
  gap: 0;
}
.ai-shell.is-meet .ai-stage {
  overflow-y: auto;
  overflow-x: hidden;
}
.ai-shell.is-meet .ai-meet {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 1 0 auto;
  min-height: min(42vh, 360px);
  overflow: visible;
  justify-content: center;
  padding: 24px 0 20px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.96) 70%, rgba(7, 10, 18, 0));
}
.ai-chips,
.ai-compose,
.ai-hitl {
  flex: none;
}

/* Brand-first empty state */
.ai-meet-hero.is-house-hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation: ai-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ai-house-mark {
  margin: 0 0 4px;
  font-family: var(--f-mono);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
}
.ai-house-mark span {
  color: var(--accent);
  text-shadow: 0 0 40px var(--glow);
}
.ai-meet-copy .ai-meet-kicker {
  color: var(--accent) !important;
  letter-spacing: 0.18em;
  margin-bottom: 12px !important;
}
.ai-meet-copy h1 {
  font-family: var(--f-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(40px, 6.2vw, 72px) !important;
  letter-spacing: -0.03em;
  line-height: 1.02 !important;
  max-width: 14ch;
  color: var(--ink) !important;
}
.ai-shell.is-sdr .ai-meet-copy h1 {
  max-width: none;
  font-size: clamp(48px, 7vw, 96px) !important;
}
.ai-meet-lead {
  max-width: 40ch;
  color: var(--ink60) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  margin-top: 16px !important;
}

.ai-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  max-width: 560px;
}
.ai-product-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink60);
  background: rgba(255,255,255,0.02);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}
.ai-product-row a:hover {
  color: var(--ink);
  border-color: rgba(49, 95, 255, 0.5);
  background: rgba(49, 95, 255, 0.08);
  transform: translateY(-1px);
}
.ai-product-row a i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.ai-hitl {
  color: var(--ink60) !important;
}
.ai-hitl strong { color: var(--ink); font-weight: 600; }

.ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink60);
  background: rgba(52, 211, 153, 0.06);
}
.ai-status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.8s ease-in-out infinite;
}

.ai-bubble.is-me {
  background: var(--accent) !important;
  color: #fff !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
@keyframes ai-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-status-pill i { animation: none; }
  .ai-product-row a,
  .ai-chips button { transition: none; }
  .ai-meet-hero.is-house-hero { animation: none; }
}

@media (max-width: 860px) {
  .ai-top { padding: 0 16px; }
  .ai-top-nav a:not(.is-cta):not(.is-lang) { display: none; }
  .ai-meet-copy h1 { max-width: none; }
  .ai-product-row { max-width: none; }
  .ai-house-mark { font-size: clamp(22px, 7vw, 32px); letter-spacing: 0.1em; }
  .ai-shell.is-meet .ai-meet { padding: 12px 0 16px; justify-content: flex-start; }
}

/* Short panes: compact brand strip — never hide the mark */
@media (max-height: 720px) {
  .ai-product-row,
  .ai-status-pill { display: none; }
  .ai-meet-lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px !important;
    margin-top: 10px !important;
  }
  .ai-shell.is-meet .ai-meet {
    min-height: 0;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 12px 0 8px;
  }
  .ai-house-mark {
    font-size: clamp(18px, 5vw, 26px);
    margin-bottom: 0;
  }
  .ai-meet-copy h1 {
    font-size: clamp(28px, 7vw, 40px) !important;
  }
  .ai-meet-copy .ai-meet-kicker { margin-bottom: 6px !important; }
}

@media (max-height: 480px) {
  .ai-meet-lead,
  .ai-meet-kicker { display: none !important; }
  .ai-shell.is-meet .ai-meet { padding: 6px 0 4px; }
  .ai-hitl { display: none; }
}
