:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --card: rgba(14, 14, 14, 0.72);
  --text: #f8f8f8;
  --muted: #a9a9a9;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #ffffff;
  --danger: #f66;
  --warning: #ffc870;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 20% -10%, #1a1a1a 0%, var(--bg) 45%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.04), transparent 26%);
  pointer-events: none;
  z-index: -2;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(5, 5, 5, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.dot {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: center / cover no-repeat url("/assets/images/logo.png");
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.links {
  display: flex;
  gap: 20px;
}

.links a {
  color: var(--muted);
  font-weight: 600;
}

.links a.active,
.links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #fff, #d8d8d8);
  color: #0a0a0a;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero {
  padding: 76px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.kicker {
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.status-preview {
  padding: 20px;
}

.status-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.badge {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.metric .value {
  font-size: 1.2rem;
  font-weight: 800;
}

.section {
  padding: 30px 0 54px;
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.section p {
  color: var(--muted);
}

.cards {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
  margin-top: 0;
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dedede;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.table-wrap {
  margin-top: 16px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  background: rgba(255, 255, 255, 0.03);
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

th {
  color: #c3c3c3;
  font-weight: 700;
}

.ok {
  color: #bdfcc6;
}

.warn {
  color: var(--warning);
}

.down {
  color: var(--danger);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #9c9c9c;
  padding: 22px 0;
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.form {
  padding: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  color: #d5d5d5;
  font-size: 0.92rem;
}

input,
textarea,
select {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.55);
  color: #f1f1f1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Decorative monochrome pulse */
.hero h1 {
  background: linear-gradient(90deg, #f9f9f9, #a8a8a8, #f9f9f9);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titlePulse 7s linear infinite;
}

@keyframes titlePulse {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 240% 50%;
  }
}

@keyframes fadePulse {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .links {
    gap: 12px;
    font-size: 0.92rem;
  }
}

/* Client area */
.client-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.sidebar {
  position: sticky;
  top: 78px;
  height: fit-content;
  padding: 14px;
}

.sidebar h3 {
  margin: 0 0 10px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ddd;
  background: rgba(255, 255, 255, 0.02);
}

.side-link.active,
.side-link:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.stack {
  display: grid;
  gap: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.kpi .value {
  font-size: 1.25rem;
  font-weight: 800;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: #ddd;
}

@media (max-width: 980px) {
  .client-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
