/* HireAce — International corporate system
   Swiss grid + institutional navy + signal blue. Investor / global SME.
   Type: Segoe UI / system — tight, high contrast, large display scale.
*/
:root {
  --ink: #0B1220;
  --ink-1: #ffffff;
  --ink-2: #1A2438;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --muted: #5B6B82;
  --line: #E2E8F2;
  --line-strong: #C9D4E4;
  --signal: #3D8BFF;
  --signal-deep: #1B5FD9;
  --gold: #C5A35A;
  --mint: #0F9D7A;
  --danger: #C23B3B;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 18, 32, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--signal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-muted { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead, .section-dark .muted { color: #A8B7CC; }
.section-dark a { color: var(--signal); }
.section-dark a.btn-primary,
.section-dark a.btn-primary:hover { color: var(--white); }

/* Type */
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 16px;
}
.section-dark .eyebrow { color: var(--gold); }

.display-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header.on-dark {
  background: rgba(11,18,32,0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}
.site-header.on-dark .nav a { color: var(--white); }
.site-header.on-dark .nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.site-header.on-dark .nav a.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--signal); }
.site-header.on-dark .nav a.btn-primary,
.site-header.on-dark .nav a.btn-primary.active,
.site-header.on-dark .nav a.btn-primary:hover {
  color: var(--white);
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: none;
}
.site-header.on-dark .nav-toggle { border-color: rgba(255,255,255,0.2); color: var(--white); background: transparent; }
.site-header.on-dark .logo .word,
.site-header.on-dark .logo:hover,
.site-header.on-dark .logo:hover .word { color: #ffffff; }
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; gap: 12px;
}

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo img, .logo svg { width: 36px; height: 36px; }
.logo .word {
  font-size: 1.2rem; font-weight: 750; letter-spacing: -0.04em; color: #0B1220;
}
.logo .word i { font-style: normal; color: var(--signal); }

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 2px;
}
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.94rem;
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: var(--radius);
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a.active {
  color: var(--ink);
  font-weight: 750;
  box-shadow: inset 0 -2px 0 var(--signal-deep);
}
.nav .btn { margin-left: 10px; }
.nav a.btn-primary,
.nav a.btn-primary.active,
.nav a.btn-primary:hover {
  color: var(--white);
  background: var(--signal-deep);
  border-color: var(--signal-deep);
  box-shadow: none;
  font-weight: 700;
}
.nav a.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.nav a.btn-talk,
.nav a.btn-talk:hover,
.site-header.on-dark .nav a.btn-talk,
.site-header.on-dark .nav a.btn-talk:hover {
  position: relative;
  overflow: visible;
  color: var(--signal-deep);
  background: transparent;
  border: 1px solid var(--signal);
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav a.btn-talk:hover,
.site-header.on-dark .nav a.btn-talk:hover { background: rgba(61, 139, 255, 0.1); }
.site-header.on-dark .nav a.btn-talk,
.site-header.on-dark .nav a.btn-talk:hover { color: #8EBEFF; }
.nav-online {
  position: absolute; top: -9px; right: -8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ink); border: 1px solid rgba(15, 157, 122, 0.7);
  border-radius: 999px; padding: 2px 6px 2px 5px;
  font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #7DDCB4; font-weight: 700; line-height: 1; pointer-events: none;
}
.nav-online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(15, 157, 122, 0.7);
  animation: nav-online-pulse 1.8s ease-out infinite;
}
@keyframes nav-online-pulse {
  70% { box-shadow: 0 0 0 5px rgba(15, 157, 122, 0); }
}
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); background: var(--white);
  cursor: pointer; border-radius: var(--radius); font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--signal); color: var(--white); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--white); }
.btn-secondary {
  background: var(--white); color: var(--ink); border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); }
.btn-ghost-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 100px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(61,139,255,0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(197,163,90,0.12), transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { color: #B7C5D8; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-badges .pill {
  font-size: 0.88rem; color: #B7C5D8;
}
.hero-badges .pill strong { color: var(--white); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0;
  font-weight: 550;
}

/* Ace deck */
.ace-deck { display: grid; gap: 14px; }
.ace-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center;
}
.ace-card .mark {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.ace-card.sales .mark { background: var(--mint); color: var(--white); }
.ace-card.marketing .mark { background: var(--signal); color: var(--white); }
.ace-card.support .mark { background: var(--gold); color: var(--ink); }
.ace-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--white); }
.ace-card p { margin: 0; font-size: 0.95rem; color: #A8B7CC; }
.ace-card .gate {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--signal); margin-bottom: 14px;
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}

.steps { display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step .n {
  font-size: 1.4rem; font-weight: 750; letter-spacing: -0.03em; color: var(--signal);
}
.step h3 { margin-bottom: 8px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
table.data { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 680px; }
table.data th {
  text-align: left; padding: 16px 20px;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line-strong); font-weight: 700;
}
table.data td {
  padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }
table.data .yes { color: var(--mint); font-weight: 700; }
table.data .no { color: var(--muted); }
table.data .us { background: #EFF6FF; }

.logo-row {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.logo-row span {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: var(--white);
}

/* Stats bar */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.stat-bar .stat {
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-bar .stat:last-child { border-right: none; }
.stat-bar .v {
  font-size: 1.75rem; font-weight: 750; letter-spacing: -0.03em; color: #1A2438;
  margin-bottom: 6px;
}
.stat-bar .k { font-size: 0.88rem; color: #A8B7CC; }

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
}
.stat .v { font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; }
.stat .k { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: 0;
  padding: 80px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .lead { color: #B7C5D8; margin: 0 auto 32px; }

/* Compare note */
.compare-note {
  border-left: 3px solid var(--signal);
  background: var(--paper);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Forms */
.form-card {
  max-width: 520px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.form-card.wide { max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 0.82rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--white); color: var(--ink); caret-color: var(--ink); font-size: 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--signal); outline: 2px solid rgba(61,139,255,0.25);
}
.field .error { color: var(--danger); font-size: 0.88rem; margin-top: 6px; min-height: 1em; }

.role-choice { display: grid; gap: 12px; margin-bottom: 24px; }
.role-choice button {
  text-align: left; background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer;
}
.role-choice button.selected { border-color: var(--signal); background: #EFF6FF; }
.role-choice button strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

.check-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); margin-bottom: 12px; cursor: pointer;
}
.check-row input { width: 20px; height: 20px; margin-top: 2px; }
.check-row:has(input:checked) { border-color: var(--signal); }

.alert {
  padding: 14px 16px; border-radius: var(--radius); font-size: 0.95rem;
  margin-bottom: 18px; border: 1px solid var(--line-strong); background: var(--paper);
}
.alert.ok { border-color: var(--mint); background: #ECFDF8; color: #0B6B54; }
.alert.err { border-color: #E8B4B4; background: #FDF2F2; color: var(--danger); }

/* Footer */
.site-footer {
  background: var(--ink); color: #A8B7CC; padding: 72px 0 32px;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 18px; font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; font-size: 0.95rem; }
.footer-brand p { margin-top: 16px; max-width: 28ch; font-size: 0.95rem; line-height: 1.55; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 0.88rem;
}

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 12px; background: var(--white);
}
.faq summary { font-weight: 650; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Investor block */
.investor-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.investor-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.investor-card h3 { color: var(--white); }

.locale-row {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 0.9rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* Solution card variant on light */
.ace-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
}
.ace-panel .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px; margin-bottom: 16px;
}
.ace-panel.sales .tag { background: #E8F8F3; color: var(--mint); }
.ace-panel.marketing .tag { background: #EFF6FF; color: var(--signal-deep); }
.ace-panel.support .tag { background: #FBF6EB; color: #8A6D2F; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .grid-2, .investor-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat-bar .stat:nth-child(2) { border-right: none; }
  .stat-bar .stat:nth-child(1),
  .stat-bar .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
  }
  .site-header.on-dark .nav.open { background: var(--ink); border-bottom-color: rgba(255,255,255,0.1); }
  .nav-toggle { display: grid; place-items: center; }
  .grid-3, .grid-4, .stat-bar { grid-template-columns: 1fr; }
  .stat-bar .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  h1 { font-size: 2.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .ace-card { grid-template-columns: 40px 1fr; }
  .ace-card .gate { grid-column: 2; }
  .lunox-widget { right: 12px; bottom: 88px; height: min(540px, calc(100vh - 120px)); }
}

/* Bottom-right concierge — HireAce navy and signal blue */
.concierge-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(61, 139, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px) scale(0.86);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.15s ease;
}
.concierge-float.is-in { opacity: 1; transform: none; pointer-events: auto; }
.concierge-float.is-in:hover { transform: scale(1.08); background: var(--signal-deep); }
.concierge-float svg { width: 26px; height: 26px; }
.lunox-widget {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 960;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 140px));
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  background: #0B1220;
  border: 1px solid rgba(61, 139, 255, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #F4F6F9;
  isolation: isolate;
}
.lunox-widget.open { display: grid; }
.lunox-widget-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid rgba(61, 139, 255, 0.28);
  background: #121A2B;
}
.lunox-widget-kicker {
  display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); margin-bottom: 4px;
}
.lunox-widget-head strong { font-size: 1.15rem; color: #F0EDE6; }
.lunox-widget-x {
  width: 32px; height: 32px; border: 0; background: transparent; color: #F0EDE6; font-size: 22px; cursor: pointer;
}
.lunox-widget-gate, .lunox-widget-chat { min-height: 0; }
.lunox-widget-gate[hidden],
.lunox-widget-chat[hidden],
.lunox-widget-error[hidden] { display: none !important; }
.lunox-widget-gate { display: grid; gap: 10px; padding: 16px; align-content: start; }
.lunox-widget-gate p { margin: 0; color: #A8B7CC; font-size: 0.92rem; }
.lunox-widget-gate label { display: grid; gap: 6px; font-size: 0.82rem; color: #B7C5D8; }
.lunox-widget-gate input, .lunox-widget-composer textarea {
  width: 100%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
  color: #F0EDE6; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px;
}
.lunox-widget-error { color: #F0B4B4; font-size: 0.85rem; margin: 0; padding: 0 12px 12px; }
.lunox-widget-modes { display: flex; gap: 8px; padding: 10px 12px 0; }
.lunox-widget-modes a, .lunox-widget-modes span {
  flex: 1; text-align: center; text-decoration: none; border-radius: 999px;
  border: 1px solid rgba(61,139,255,0.45); color: #F4F6F9; padding: 6px 8px; font-size: 0.82rem; font-weight: 700;
}
.lunox-widget-modes .on, .lunox-widget-modes a:hover { background: var(--signal); color: var(--white); }
.lunox-widget-chat { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-height: 0; background: #0B1220; }
.lunox-widget-log { overflow: auto; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lunox-widget-bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 0.92rem; line-height: 1.45; }
.lunox-widget-bubble strong { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.lunox-widget-bubble.user { margin-left: auto; background: var(--signal); color: var(--white); }
.lunox-widget-bubble.assistant { background: #1A2438; color: #F4F6F9; }
.lunox-widget-composer {
  display: flex; align-items: flex-end; gap: 8px; padding: 12px;
  border-top: 1px solid rgba(61, 139, 255, 0.22); background: #0B1220;
}
.lunox-widget-composer textarea {
  resize: none; height: 40px; min-height: 40px; max-height: 40px;
  overflow: hidden; line-height: 20px; padding: 9px 12px;
}
.lunox-widget-composer .btn {
  align-self: flex-end; height: 40px; min-height: 40px; padding: 0 16px; flex: 0 0 auto;
}
.lunox-widget .btn { background: var(--signal); color: var(--white); border: 0; min-height: 44px; }
.lunox-widget .btn:hover { background: var(--signal-deep); color: var(--white); }
.lunox-widget-gate input:focus, .lunox-widget-composer textarea:focus { border-color: var(--signal); outline: none; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.talk-page { padding-top: 36px; }
body.talk-stage { background: var(--ink); color: var(--white); }
.talk-layout {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
  padding: 36px 0 88px;
}
.talk-layout h1 { color: var(--white); font-size: clamp(2.2rem, 3.4vw, 3.05rem); max-width: none; }
.talk-line { white-space: nowrap; }
.talk-layout h1 em { font-style: italic; font-weight: 550; color: var(--signal); }
.talk-layout .lead { color: #A8B7CC; }
.talk-steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: step; }
.talk-steps li { display: flex; align-items: center; gap: 12px; color: #C5D0E0; }
.talk-steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  color: var(--signal); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
}
.talk-card {
  background: #141C2E; border: 1px solid rgba(61, 139, 255, 0.28);
  border-radius: 12px; padding: 28px;
}
.talk-card h2 { color: var(--white); font-size: clamp(1.35rem, 2vw, 1.7rem); }
.talk-card .lead, .talk-card .muted { color: #A8B7CC; }
.talk-card .choice-grid { margin-top: 8px; }
.talk-card .choice-card {
  background: rgba(11, 18, 32, 0.55); border-color: rgba(61, 139, 255, 0.4); color: var(--white);
}
.talk-card .choice-card:hover { border-color: var(--signal); background: rgba(61, 139, 255, 0.12); }
.talk-card .choice-card strong {
  color: var(--signal); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem;
}
.talk-card .choice-card span { color: #A8B7CC; }
.talk-card .field label { color: #E8EEF6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.talk-card .btn-secondary { background: transparent; color: var(--white); border-color: rgba(61, 139, 255, 0.55); }
.talk-card .btn-secondary:hover { background: rgba(61, 139, 255, 0.12); color: var(--white); border-color: var(--signal); }
@media (max-width: 800px) {
  .talk-layout, .field-row { grid-template-columns: 1fr; gap: 32px; }
}
.talk-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.talk-bar h1 { margin-bottom: 4px; }
.talk-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.talk-switch .btn.active { background: var(--signal); color: var(--white); border-color: var(--signal); }
.talk-switch .pill {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); font-size: 0.85rem; color: var(--muted);
}
.talk-switch .pill[data-state="active"] { color: #0E7A4B; border-color: #B7E4CC; background: #F3FBF6; }
.talk-switch .pill[data-state="error"] { color: #9B2C2C; border-color: #F0C4C4; background: #FDF4F4; }
.chat-page { background: #E8F1FF; }
.chat-page .talk-bar { align-items: center; }
.chat-page .talk-bar h1 { color: var(--ink); }
.chat-page #guestName { color: var(--signal-deep); font-weight: 700; margin: 0; }
.chat-shell {
  background: var(--white); border: 0; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(27, 95, 217, 0.18);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: 560px; overflow: hidden;
}
.chat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ink); border-bottom: 0; }
.chat-toolbar .btn-secondary,
.chat-toolbar .btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.chat-status { margin: 0; font-size: 0.88rem; font-weight: 700; color: #A8B7CC; }
.chat-status[data-ready="true"] { color: #7DDCB4; }
.chat-empty { margin: auto; text-align: center; color: var(--signal-deep); }
.chat-shell .alert { margin: 0 18px 14px; }
.call-layout { display: grid; grid-template-columns: 1.45fr 0.7fr; gap: 20px; }
.call-stage { position: relative; min-height: 520px; background: var(--ink); border-radius: 12px; overflow: hidden; display: grid; }
.call-side { display: flex; flex-direction: column; min-height: 520px; }
.call-side h3 { margin-bottom: 12px; }
#transcript { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.transcript-line strong { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal-deep); }
.call-controls .btn.end, #endBtn { background: #C23B3B; border-color: #C23B3B; color: var(--white); }
.choice-card {
  display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); background: var(--white);
}
.choice-card:hover { border-color: var(--signal); }
.choice-card span { color: var(--muted); font-size: 0.92rem; }
.video-layout, .call-layout { display: grid; grid-template-columns: 1.45fr 0.7fr; gap: 20px; }
.video-stage, .call-stage { position: relative; min-height: 520px; background: var(--ink); border-radius: 12px; overflow: hidden; display: grid; align-content: center; }
.video-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.video-placeholder { padding: 48px 28px; text-align: center; color: #F4F6F9; }
.video-placeholder h2 { color: var(--white); }
.video-placeholder .muted { color: #A8B7CC; }
.video-local { position: absolute; right: 16px; bottom: 88px; width: 168px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.75); }
.video-controls { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; }
.video-controls[hidden], .video-local[hidden] { display: none !important; }
.video-controls .btn {
  width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.28);
}
.video-controls .btn svg { width: 22px; height: 22px; display: block; }
.video-controls .icon-off { display: none; }
.video-controls .btn.off .icon-on { display: none; }
.video-controls .btn.off .icon-off { display: block; }
.video-controls .btn.off { background: var(--white); color: var(--ink); }
#endBtn { background: #C23B3B; border-color: #C23B3B; color: var(--white); }
#endBtn svg { transform: rotate(135deg); }
.chat-log { min-height: 0; overflow: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #F5F9FF 0%, #DCE9FF 100%); }
.chat-bubble { max-width: 78%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--white); border: 0; box-shadow: 0 6px 18px rgba(11, 18, 32, 0.08); }
.chat-bubble strong { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; color: var(--signal-deep); }
.chat-bubble.user { margin-left: auto; background: linear-gradient(180deg, #4C96FF 0%, #1B5FD9 100%); color: var(--white); border-radius: 16px 16px 4px 16px; }
.chat-bubble.user strong { color: rgba(255,255,255,0.86); }
.chat-cursor, .lunox-widget-cursor {
  display: inline-block; width: 8px; height: 1.05em; margin-left: 2px;
  background: var(--signal); vertical-align: text-bottom; border-radius: 1px;
  animation: hireace-blink 1s steps(2, start) infinite;
}
.chat-bubble.user .chat-cursor { background: var(--white); }
@keyframes hireace-blink { to { visibility: hidden; } }
.chat-composer { display: flex; gap: 10px; align-items: flex-end; margin: 0; padding: 14px 18px; border-top: 0; background: var(--white); }
.chat-composer textarea { flex: 1; min-height: 40px; border: 1px solid #9CC4FF; border-radius: 10px; padding: 8px 12px; background: #F5F9FF; font-size: 14px; }
@media (max-width: 800px) {
  .choice-grid, .video-layout, .call-layout { grid-template-columns: 1fr; }
}
