:root {
  --bg: #07090d;
  --sidebar: #090b10;
  --panel: #121722;
  --panel-soft: rgba(255,255,255,0.055);
  --panel-hover: rgba(255,255,255,0.10);
  --text: #f4f7fb;
  --muted: #96a0b3;
  --line: #1d2433;
  --green: #1adb8a;
  --blue: #4a9eff;
  --purple: #a78bfa;
  --amber: #fbbf24;
  --cyan: #12c8c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 12%, rgba(18,200,200,0.08), transparent 30rem),
    linear-gradient(180deg, #080a0f 0%, #0a0c10 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.brand-logo-block {
  padding: 0 20px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.brand-logo-link {
  display: block;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: 148px;
  max-width: 148px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 8px;
}

nav a {
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

nav a:hover {
  background: #171c27;
  color: #d8deea;
}

nav a.nav-active,
nav a:first-child {
  background: rgba(26,219,138,0.08);
  color: var(--green);
}

.side-note {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.side-note strong {
  color: #d8deea;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-note span {
  color: var(--muted);
  line-height: 1.5;
}

.main {
  padding: 56px 44px 40px;
  max-width: 1280px;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}

.hero-brand { margin-bottom: 18px; }

.hero-wordmark-clean {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.hero-wordmark-main {
  color: #f7faff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-wordmark-sub {
  color: #aeb7c8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-wordmark-sub::before,
.hero-wordmark-sub::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  vertical-align: middle;
}

.hero-wordmark-sub::before { margin-right: 9px; }
.hero-wordmark-sub::after { margin-left: 9px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  background: rgba(26,219,138,0.09);
  border: 1px solid rgba(26,219,138,0.22);
  padding: 5px 13px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 999px;
  display: inline-block;
}

h1 {
  color: #fff;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 820;
}

h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.hero-card {
  min-height: 224px;
  background: linear-gradient(180deg, #141a25 0%, #111722 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

.hero-card-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero-card strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.card {
  background: linear-gradient(180deg, #141923 0%, #111722 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #2b3550;
  background: linear-gradient(180deg, #171d29 0%, #121925 100%);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.card-green::before { background: var(--green); }
.card-blue::before { background: var(--blue); }
.card-purple::before { background: var(--purple); }
.card-amber::before { background: var(--amber); }

.card-corner {
  width: 0;
  height: 0;
  border-top: 24px solid var(--green);
  border-right: 24px solid transparent;
  display: block;
  margin-bottom: 22px;
}

.card-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-blue .card-icon { color: var(--blue); }
.card-purple .card-icon { color: var(--purple); }
.card-amber .card-icon { color: var(--amber); }

.tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 8px;
}

.tag-green { color: var(--green); }
.tag-blue { color: var(--blue); }
.tag-purple { color: var(--purple); }
.tag-amber { color: var(--amber); }

.card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-green {
  color: var(--green);
  background: rgba(26,219,138,0.12);
}

.btn-purple {
  color: var(--purple);
  background: rgba(167,139,250,0.12);
}

.btn-secondary {
  background: var(--panel-soft);
  color: #d9dfeb;
  border-color: var(--line);
}

.flow-title {
  color: #fff;
  font-size: 22px;
  margin: 0 0 4px;
}

.flow-sub {
  color: var(--muted);
  margin: 0 0 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step {
  background: #121722;
  border: 1px solid var(--line);
  border-right: 0;
  padding: 20px 18px;
  position: relative;
  min-height: 120px;
}

.step:first-child { border-radius: 14px 0 0 14px; }
.step:last-child {
  border-radius: 0 14px 14px 0;
  border-right: 1px solid var(--line);
}

.step strong {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(26,219,138,0.15);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  margin-bottom: 6px;
}

.step-text {
  display: block;
  color: #d8deea;
  font-size: 13px;
  line-height: 1.45;
}

.event-card {
  border: 1px solid var(--line);
  background: #121722;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.event-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.payload {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.payload div,
.action-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
}

.payload strong,
.payload span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.payload span,
.action-card span {
  color: var(--muted);
}

.actions {
  display: grid;
  gap: 10px;
}

.action-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.action-card.supervised {
  border-color: rgba(251,191,36,0.5);
  background: rgba(251,191,36,0.08);
}

.action-card em {
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.message-draft {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
}

.summary {
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }
  .brand-logo-block {
    border-bottom: 0;
    padding: 0;
    margin: 0;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }
  .side-note { display: none; }
  .main { padding: 28px 20px; }
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step,
  .step:first-child,
  .step:last-child {
    border-radius: 0;
    border-right: 1px solid var(--line);
  }
  .step:first-child { border-radius: 14px 14px 0 0; }
  .step:last-child { border-radius: 0 0 14px 14px; }
  .payload { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
}


/* TUX ERP VISUAL V0.11 — RIGHT HERO LOGO POLISH */
.hero-panel-logo {
  display: block;
  width: min(168px, 82%);
  max-width: 168px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 28px;
  opacity: 0.92;
  filter: drop-shadow(0 18px 34px rgba(18, 200, 200, 0.12));
}

.hero-card {
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -72px;
  top: -72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,200,200,0.10), transparent 68%);
  pointer-events: none;
}

.hero-card-label,
.hero-card strong,
.hero-card span,
.hero-card div {
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .hero-panel-logo {
    width: 142px;
    max-width: 142px;
    margin-bottom: 18px;
  }
}

