/* LigmaSUS overview and its dashboard card. */
.ligmasus-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  background: linear-gradient(115deg, var(--surface), var(--bg-alt));
}
.ligmasus-card .bot-avatar { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; }
.ligmasus-card-copy { flex: 1; min-width: 0; }
.ligmasus-card-copy h3 { color: var(--text); margin: 0 0 .4rem; font-size: 1.35rem; }
.ligmasus-card-copy p { margin: 0; max-width: 650px; }
.ligmasus-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ligmasus-actions .btn-primary, .ligmasus-actions .btn-secondary, .ligmasus-end .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 0; width: auto; min-height: 46px; padding: .7rem 1.1rem; text-align: center; white-space: nowrap;
}
.ligmasus-actions .btn-primary, .ligmasus-end .btn-primary { background: #5865f2; color: #fff; }
.ligmasus-actions .btn-primary:hover, .ligmasus-end .btn-primary:hover { background: #4752c4; text-decoration: none; }
.ligmasus-actions a:focus-visible, .ligmasus-page a:focus-visible, .ligmasus-page button:focus-visible, .ligmasus-page summary:focus-visible {
  outline: 3px solid #60a5fa; outline-offset: 4px;
}
.ligmasus-page { --primary: #3b82f6; }
.ligmasus-page h1, .ligmasus-page h2, .ligmasus-page h3 { color: var(--text); }
.ligmasus-page a:not(.btn-primary):not(.btn-secondary):not(.brand) { color: #93c5fd; }
.ligmasus-page .top-bar { height: auto; min-height: 72px; gap: 1rem; padding: .65rem 2rem; }
.ligmasus-page .brand { color: #f1f5f9; }
.ligmasus-page .brand img { height: 48px; width: 48px; }
.ligmasus-top-nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.ligmasus-theme { cursor: pointer; background: #1e293b; border: 1px solid #64748b; color: #f1f5f9; border-radius: 6px; padding: .5rem .75rem; font: inherit; }
.ligmasus-main { max-width: 1180px; }
.ligmasus-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 3rem; align-items: center; padding: 3rem 0; }
.ligmasus-eyebrow { color: #a5b4fc; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; margin-bottom: .8rem; }
.ligmasus-hero h1 { font-size: clamp(2.5rem, 5.7vw, 4.5rem); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 1.3rem; }
.ligmasus-lead { font-size: 1.45rem; line-height: 1.45; color: var(--text); }
.ligmasus-hero p { max-width: 620px; }
.ligmasus-hero .ligmasus-actions { margin-top: 1.75rem; }
.ligmasus-caption { margin: .8rem 0 0; font-size: .8rem; }
.ligmasus-portrait { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 2.5rem 1.5rem; border-radius: 32px; border: 1px solid var(--border); background: radial-gradient(ellipse at 50% 20%, rgba(88, 101, 242, .22), transparent 70%), var(--bg-alt); }
.ligmasus-portrait img { width: min(100%, 256px); height: auto; border-radius: 28px; box-shadow: 0 20px 45px #0003; }
.ligmasus-portrait span { color: var(--text-muted); text-align: center; font-size: .82rem; }
.ligmasus-jump { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.ligmasus-jump a { padding: .55rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: .88rem; }
.ligmasus-section { padding-top: 3.5rem; scroll-margin-top: 100px; }
.ligmasus-section h2 { font-size: 1.85rem; letter-spacing: -.025em; margin-bottom: 1rem; }
.ligmasus-section > p { max-width: 830px; }
.ligmasus-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ligmasus-feature { display: flex; flex-direction: column; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ligmasus-feature h3 { font-size: 1.12rem; margin-bottom: .7rem; }
.ligmasus-feature p { line-height: 1.7; font-size: .94rem; }
.ligmasus-feature-mark { color: #a5b4fc; font-size: .7rem; font-weight: 750; letter-spacing: .1em; margin-bottom: 1.25rem; }
.ligmasus-command-hint { margin-top: auto; font-size: .78rem; color: var(--text-muted); }
.ligmasus-page code { color: var(--text); padding: .13em .3em; border-radius: 4px; background: var(--bg-alt); font-size: .92em; overflow-wrap: anywhere; }
.ligmasus-steps { list-style: none; counter-reset: ligmasus-step; display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; }
.ligmasus-steps li { counter-increment: ligmasus-step; display: flex; gap: 1.2rem; padding: 1.2rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; }
.ligmasus-steps li::before { content: counter(ligmasus-step, decimal-leading-zero); color: #a5b4fc; font-weight: 750; font-size: 1.15rem; padding-top: .1rem; flex-shrink: 0; }
.ligmasus-steps h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.ligmasus-steps p { margin: 0; }
.ligmasus-note { border-left: 3px solid #818cf8; background: var(--surface); color: var(--text-muted); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
.ligmasus-note strong { color: var(--text); }
.ligmasus-memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.ligmasus-memory-grid p { margin: 0; }
.ligmasus-small { font-size: .9rem; }
.ligmasus-faq { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 10px; margin: .75rem 0; }
.ligmasus-faq summary { cursor: pointer; font-weight: 600; padding: 1rem 1.25rem; }
.ligmasus-faq[open] summary { border-bottom: 1px solid var(--border); }
.ligmasus-faq > div { padding: 1.25rem; }
.ligmasus-faq p:last-child { margin-bottom: 0; }
.ligmasus-end { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem; margin: 2.5rem 0 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ligmasus-end p { margin: 0; }
.ligmasus-skip { position: absolute; left: 1rem; top: -80px; z-index: 1000; padding: .8rem; background: var(--surface); border: 2px solid #60a5fa; }
.ligmasus-skip:focus { top: .75rem; }
:root[data-theme="light"] .ligmasus-page a:not(.btn-primary):not(.btn-secondary):not(.brand) { color: #1d4ed8; }
:root[data-theme="light"] .ligmasus-page .top-bar a { color: #dbeafe !important; }
:root[data-theme="light"] .ligmasus-eyebrow, :root[data-theme="light"] .ligmasus-feature-mark, :root[data-theme="light"] .ligmasus-steps li::before { color: #4338ca; }
@media (max-width: 1050px) {
  .ligmasus-card { flex-wrap: wrap; }
  .ligmasus-card .ligmasus-actions { flex-basis: 100%; }
}
@media (max-width: 800px) {
  .ligmasus-hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
  .ligmasus-portrait { flex-direction: row; gap: 1.2rem; padding: 1.25rem; border-radius: 18px; }
  .ligmasus-portrait img { width: 96px; border-radius: 16px; }
  .ligmasus-portrait span { text-align: left; }
  .ligmasus-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ligmasus-memory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .ligmasus-page .top-bar { padding: .7rem 1rem; flex-wrap: wrap; position: static; }
  .ligmasus-page .brand { font-size: 1.1rem; }
  .ligmasus-top-nav { width: 100%; gap: 1rem; }
  .ligmasus-main { padding: 1rem; }
  .ligmasus-feature-grid { grid-template-columns: 1fr; }
  .ligmasus-section { padding-top: 2.5rem; scroll-margin-top: 1rem; }
  .ligmasus-end { flex-direction: column; align-items: stretch; padding: 1.5rem; }
  .ligmasus-card { gap: 1rem; padding: 1.25rem; }
  .ligmasus-card .bot-avatar { width: 56px; height: 56px; border-radius: 12px; }
  .ligmasus-card-copy p { font-size: .9rem; }
  .ligmasus-card .ligmasus-actions a { flex: 1; }
  .ligmasus-steps li { padding: 1rem; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ligmasus-card, .ligmasus-page * { transition: none !important; scroll-behavior: auto !important; }
}
