/* Cybercentric Works — site + demo styles. System fonts only; no external requests. */
:root {
  --ink: #0f1419; --ink-2: #161d25; --ink-3: #222b35;
  --paper: #f7f5f0; --surface: #ffffff; --surface-2: #faf9f6;
  --line: #e4dfd4; --line-strong: #d3ccbd;
  --text: #1b1f24; --muted: #5b626b; --on-ink: #f3efe6; --on-ink-muted: #b4bbb5;
  --gold: #c9a56a; --gold-ink: #7d5e2b; --gold-soft: #f4ead7;
  --ok: #2f7d6d; --ok-soft: #e1f1ec; --warn: #9a6414; --warn-soft: #fbefd9;
  --danger: #b4443a; --danger-soft: #f8e3e0; --info: #2f5d8a; --info-soft: #e2ecf6;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15,20,25,.06), 0 6px 24px rgba(15,20,25,.06);
  --shadow-lg: 0 20px 60px rgba(15,20,25,.18);
  --font: "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--gold); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: .5rem; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,20,25,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(243,239,230,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--on-ink); text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; }
.brand span { color: var(--on-ink-muted); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--on-ink-muted); text-decoration: none; font-size: .93rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-ink); }
.site-nav .btn { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(243,239,230,.2); color: var(--on-ink); border-radius: 8px; padding: .4rem .6rem; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; display: none; border-bottom: 1px solid rgba(243,239,230,.1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem 0; border-bottom: 1px solid rgba(243,239,230,.08); }
  .site-nav .btn { margin-top: .75rem; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.25rem; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #d4b37d; box-shadow: 0 6px 18px rgba(201,165,106,.35); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); }
.btn-ghost-light { background: transparent; border-color: rgba(243,239,230,.25); color: var(--on-ink); }
.btn-ghost-light:hover { border-color: var(--gold); }
.btn-sm { padding: .48rem .9rem; font-size: .85rem; }
.btn-ok { background: var(--ok); color: #fff; } .btn-danger { background: var(--danger); color: #fff; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 1.15rem; line-height: 1; padding: .15rem .35rem; border-radius: 6px; cursor: pointer; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero::before { content: ""; position: absolute; width: 60rem; height: 60rem; right: -20rem; top: -28rem; background: radial-gradient(circle, rgba(201,165,106,.16), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(243,239,230,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(243,239,230,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { display: inline-block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 650; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 650; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--on-ink-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: .9rem; }
.hero-points li::before { content: "✓"; color: var(--gold); margin-right: .45rem; }
.hero-visual { background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid rgba(243,239,230,.1); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem; }
.hv-bar { display: flex; gap: .4rem; margin-bottom: .9rem; } .hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243,239,230,.18); }
.hv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.hv-card { background: rgba(243,239,230,.05); border: 1px solid rgba(243,239,230,.08); border-radius: 10px; padding: .7rem; }
.hv-card small { display: block; color: var(--on-ink-muted); font-size: .7rem; }
.hv-card b { font-size: 1.05rem; }
.hv-chart { grid-column: span 3; height: 130px; }
.hv-chart svg { width: 100%; height: 100%; }
.hv-kanban { grid-column: span 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.hv-kanban div { background: rgba(243,239,230,.04); border-radius: 8px; padding: .5rem; display: grid; gap: .35rem; }
.hv-kanban span { display: block; height: 22px; border-radius: 6px; background: rgba(243,239,230,.1); }
.hv-kanban span.g { background: rgba(201,165,106,.45); }
.hv-caption { margin: .8rem .2rem 0; font-size: .74rem; color: var(--on-ink-muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; } }

/* ---------- sections ---------- */
section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.block-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.kicker { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); margin-bottom: .7rem; display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); }
.card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9rem; }
.card ul li::before { content: "—"; color: var(--gold); margin-right: .5rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 24px; height: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.4rem 1.3rem 1.3rem; border-top: 2px solid var(--gold); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--gold-ink); font-size: .85rem; font-weight: 700; display: block; margin-bottom: .6rem; }
.steps h3 { font-size: 1.1rem; } .steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.demo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.demo-card { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; display: flex; flex-direction: column; }
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.demo-thumb { background: var(--ink); padding: 1rem; aspect-ratio: 16/8; display: grid; }
.demo-thumb svg { width: 100%; height: 100%; }
.demo-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.demo-card-body h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.demo-card-body p { color: var(--muted); font-size: .94rem; }
.demo-card-body .go { margin-top: auto; font-weight: 600; color: var(--gold-ink); font-size: .92rem; }
.tagline-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 650; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: .25rem .7rem; margin-bottom: 1rem; }
.split-cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .split-cta { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.contact { background: var(--ink); color: var(--on-ink); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 40rem; height: 40rem; left: -18rem; bottom: -26rem; background: radial-gradient(circle, rgba(201,165,106,.18), transparent 62%); }
.contact > * { position: relative; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.contact p { color: var(--on-ink-muted); max-width: 40rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; color: var(--on-ink-muted); }
.contact-list strong { color: var(--on-ink); font-weight: 600; margin-right: .4rem; }
.site-footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.disclaimer { flex-basis: 100%; font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- demo page chrome ---------- */
.page-head { background: var(--ink); color: var(--on-ink); padding: 2.6rem 0 2.2rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4rem; }
.page-head p { color: var(--on-ink-muted); margin: 0; max-width: 46rem; }
.crumbs { font-size: .85rem; margin-bottom: .9rem; color: var(--on-ink-muted); }
.crumbs a { color: var(--on-ink-muted); }
.demo-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.demo-switch a { color: var(--on-ink-muted); text-decoration: none; font-size: .86rem; padding: .35rem .8rem; border: 1px solid rgba(243,239,230,.18); border-radius: 999px; }
.demo-switch a[aria-current="page"], .demo-switch a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.demo-stage { padding: 1.8rem 0 3.5rem; }

/* ---------- demo apps ---------- */
.demo-app { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.demo-banner { display: flex; align-items: center; gap: .9rem; padding: .75rem 1.1rem; background: repeating-linear-gradient(-45deg, #fbf3e3, #fbf3e3 12px, #f7ecd6 12px, #f7ecd6 24px); border-bottom: 1px solid #ecdcbc; }
.demo-pill { background: var(--ink); color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 6px; flex: none; }
.demo-banner-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: .85rem; line-height: 1.35; }
.demo-banner-text strong { color: #5a4219; }
.demo-banner-text span { color: #6f5a35; }
.demo-head { padding: 1.3rem 1.4rem .4rem; }
.demo-eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin: 0 0 .25rem; }
.demo-title { font-size: 1.5rem; margin: 0 0 .25rem; }
.demo-sub { color: var(--muted); margin: 0; font-size: .93rem; max-width: 52rem; }
.demo-body { padding: 1rem 1.4rem 1.5rem; display: grid; gap: 1rem; }
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.filter-label { margin: 0 0 .55rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field.grow { flex: 1 1 220px; } .field.grow-sm { flex: 0 1 320px; }
.field label { font-size: .78rem; font-weight: 650; color: var(--muted); }
input, select, textarea { font: inherit; font-size: .92rem; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .55rem .7rem; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.select-sm { padding: .3rem .45rem; font-size: .8rem; }
.check { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; }
.check input { width: auto; }
.demo-form { display: grid; gap: .8rem; }
.demo-form h3 { margin: 0; font-size: 1.05rem; }
.demo-form-wrap { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem; }
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: .8rem; align-items: end; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: 2fr 1.6fr 1fr 1.2fr 1.3fr auto; }
@media (max-width: 860px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.form-actions.end { align-self: end; }
.form-error { color: var(--danger); font-size: .85rem; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .15rem; }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .78rem; color: var(--muted); }
.kpi-up .kpi-sub { color: var(--ok); } .kpi-down .kpi-sub { color: var(--danger); }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .4rem; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #b98f4c); border-radius: inherit; transition: width .3s ease; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; min-width: 0; }
.panel h3 { font-size: 1rem; margin-bottom: .8rem; }
.badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); } .badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: #eeebe4; color: #555c64; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.data-table td.num { font-variant-numeric: tabular-nums; }
.empty-state { color: var(--muted); text-align: center; padding: 1.5rem 1rem; margin: 0; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: .7rem .9rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.tab:hover { color: var(--text); } .tab.active { color: var(--text); border-bottom-color: var(--gold); }
.tab-panel { display: grid; gap: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .83rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .32rem .75rem; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; color: var(--text); }
.chip.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip-count { font-size: .72rem; font-weight: 700; background: rgba(201,165,106,.25); color: inherit; border-radius: 999px; padding: 0 .45rem; }
.split { display: grid; grid-template-columns: minmax(260px, .9fr) 1.4fr; gap: 1rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.list-panel { padding: .4rem; max-height: 560px; overflow: auto; }
.toast-region { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; pointer-events: none; }
.toast { background: var(--ink); color: var(--on-ink); padding: .65rem 1.1rem; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(201,165,106,.4); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* CRM */
.kanban { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(210px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .4rem; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; display: flex; flex-direction: column; gap: .6rem; min-height: 260px; transition: background .15s, border-color .15s; }
.kanban-col.drag-over { background: var(--gold-soft); border-color: var(--gold); }
.kanban-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.kanban-head h3 { font-size: .92rem; margin: 0; }
.kanban-meta { text-align: right; display: grid; font-size: .78rem; }
.kanban-meta .count { font-weight: 700; } .col-total { color: var(--gold-ink); font-weight: 700; }
.kanban-list { display: grid; gap: .55rem; align-content: start; flex: 1; }
.kanban-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; color: var(--muted); font-size: .82rem; padding: 1rem; margin: 0; }
.deal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .75rem; cursor: grab; box-shadow: 0 1px 2px rgba(15,20,25,.05); display: grid; gap: .25rem; }
.deal-card:hover { border-color: var(--line-strong); } .deal-card.dragging { opacity: .5; cursor: grabbing; }
.deal-card h4 { font-size: .9rem; margin: 0; letter-spacing: -.01em; }
.deal-card p { margin: 0; }
.deal-top, .deal-bottom { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.deal-bottom strong { font-size: .92rem; font-variant-numeric: tabular-nums; }
.move-to { white-space: nowrap; display: flex; align-items: center; gap: .4rem; font-size: .74rem; color: var(--muted); margin-top: .2rem; }

/* MIS */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dash-grid .span-2 { grid-column: span 2; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } .dash-grid .span-2 { grid-column: auto; } }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--gold-ink); stroke-width: 2.5; stroke-linejoin: round; }
.chart .area { fill: rgba(201,165,106,.18); }
.chart .dot { fill: var(--surface); stroke: var(--gold-ink); stroke-width: 2; } .chart .dot.hi { fill: var(--gold); }
.chart .bar rect { fill: var(--gold); transition: opacity .2s; } .chart .bar { cursor: pointer; outline: none; }
.chart .bar.hi rect { fill: var(--gold-ink); } .chart .bar.dim rect { opacity: .35; }
.chart .bar:focus-visible rect { stroke: var(--ink); stroke-width: 2; }
.chart .val { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--font); }
.donut-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; flex: 1; min-width: 140px; }
.legend li { display: flex; align-items: center; gap: .5rem; } .legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* Help desk */
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.ticket-row, .project-row { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); padding: .7rem .75rem; cursor: pointer; display: grid; gap: .3rem; }
.ticket-row:hover, .project-row:hover { background: var(--surface-2); }
.ticket-row.active, .project-row.active { background: var(--gold-soft); border-color: #e7d2a8; }
.ticket-row strong { font-size: .92rem; }
.ticket-row-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.ticket-row-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.ticket-row-meta .small { margin-right: auto; }
.empty { color: var(--muted); padding: 1rem; text-align: center; }
.detail-head h3 { font-size: 1.15rem; margin: .2rem 0 .8rem; }
.detail-head.row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.detail-head.row h3 { margin: 0; }
.detail-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
@media (max-width: 520px) { .detail-controls { grid-template-columns: 1fr; } }
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.msg { display: flex; gap: .7rem; }
.msg > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: .6rem .8rem; flex: 1; min-width: 0; }
.msg.customer > div { background: var(--info-soft); border-color: #cfdcea; }
.msg.internal > div { background: #fffaf0; border-style: dashed; border-color: #e7d2a8; }
.msg p { margin: .2rem 0 0; font-size: .9rem; }
.msg-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.reply-form { display: grid; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* HR */
.approval-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.approval { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); flex-wrap: wrap; }
.approval-main { display: grid; gap: .1rem; flex: 1; min-width: 200px; }
.approval-actions { display: flex; gap: .45rem; }

/* Portal */
.portal-welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--ink), var(--ink-3)); color: var(--on-ink); }
.portal-welcome h3 { margin: 0; font-size: 1.25rem; } .portal-welcome .muted { color: var(--on-ink-muted); margin: 0; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-item { display: flex; gap: .8rem; position: relative; padding-bottom: 1.1rem; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl-item.done:not(:last-child)::before { background: var(--ok); }
.tl-item > div { display: grid; }
.tl-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; font-size: .7rem; color: #fff; font-weight: 800; }
.tl-item.done .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl-item.current .tl-dot { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: var(--gold); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.doc { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doc > div { display: grid; }
.doc-icon { flex: none; width: 42px; height: 42px; border-radius: 9px; background: var(--ink); color: var(--gold); font-size: .66rem; font-weight: 800; display: grid; place-items: center; font-family: var(--mono); }


/* Production & QA tracker */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .75rem; }
.check-list li.done { background: var(--surface); }
.check-list li.done label { text-decoration: line-through; color: var(--muted); }
.check-list input[type="checkbox"] { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--ink); }
.wo-check-title { margin: .4rem 0 0; font-size: .95rem; }
.wo-operator { display: flex; align-items: center; gap: .35rem; }


.alarm-bar { background: #f8e4d8; border: 1px solid #e2b8a4; color: #6a3020; border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .9rem; }
.alarm-bar.is-ok { background: #e7f3ee; border-color: #b7d6c9; color: #1f5a48; }
.deal-card.is-unattended, .ticket-row.is-breached { box-shadow: inset 3px 0 0 var(--danger, #b4443a); }
.kra-list { display: grid; gap: .7rem; }
.kra-row { display: grid; grid-template-columns: 1fr minmax(120px, 1.2fr) auto; gap: .75rem; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.kra-copy { display: grid; }
.kra-score { font-variant-numeric: tabular-nums; min-width: 3.6rem; text-align: right; }
.onboard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.onboard-card h3 { margin: 0; font-size: 1.05rem; }
@media (max-width: 700px) { .kra-row { grid-template-columns: 1fr auto; } .kra-row input[type="range"] { grid-column: 1 / -1; } }

/* Prospect pages */
.prospect-hero { background: var(--ink); color: var(--on-ink); padding: 3rem 0 2.4rem; }
.prospect-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .7rem; }
.prospect-hero p { color: var(--on-ink-muted); max-width: 48rem; }
.prospect-hero .prospect-note { display: inline-block; font-size: .82rem; color: #6f5a35; background: #fbf3e3; border: 1px solid #ecdcbc; padding: .5rem .8rem; border-radius: 10px; margin-top: .4rem; }
.prospect-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; }
.prospect-tabs .tab { color: var(--on-ink-muted); border: 1px solid rgba(243,239,230,.18); border-radius: 999px; padding: .45rem .95rem; }
.prospect-tabs .tab.active, .prospect-tabs .tab:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
#demo-intro { margin: 0 0 1rem; color: var(--muted); }

@media (max-width: 600px) {
  .demo-banner { flex-wrap: wrap; } .demo-banner .btn { margin-left: auto; }
  .demo-head, .demo-body { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .demo-banner .btn, .toast-region { display: none; } }
