:root {
  --bg: #f2f6ff;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --border: #dbe5f3;
  --text: #0b1220;
  --muted: #51607a;
  --accent: #1f5eff;
  --accent-soft: #e6edff;
  --success: #0f9f6e;
  --warning: #b7791f;
  --shadow-soft: 0 12px 28px rgba(17, 28, 54, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #e8f0ff 0%, #f2f6ff 36%, #eef4ff 100%);
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }

.landing-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(17, 28, 54, 0.18);
}
.muted { color: var(--muted); }
.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.btn.primary {
  background: linear-gradient(135deg, #2e6bff 0%, #1f5eff 100%);
  color: #fff;
  border-color: #1f5eff;
}
.btn:hover { filter: brightness(0.99); box-shadow: 0 12px 20px rgba(17, 28, 54, 0.12); transform: translateY(-1px); }

.hero {
  padding: 56px 28px 32px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  font-size: 42px;
  margin: 0 0 14px;
}
.hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 12px;
  box-shadow: 0 16px 34px rgba(17, 28, 54, 0.25);
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}
.hero-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
  box-shadow: var(--shadow-soft);
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.feature-grid,
.stats-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0 28px 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(17, 28, 54, 0.06);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.card:hover {
  box-shadow: 0 14px 30px rgba(17, 28, 54, 0.1);
  transform: translateY(-1px);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.1px;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
}
.nav-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 5px;
  color: #334155;
  font-size: 14px;
}
.nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft) 0%, #f0f5ff 100%);
  color: #1d4ed8;
  font-weight: 600;
}
.main-wrap { padding: 18px 18px 28px; }
.topbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(17, 28, 54, 0.08);
}
.review-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f5d58b;
  background: #fff7e8;
  color: #8a5a17;
  font-size: 12px;
  font-weight: 600;
}
.topbar-left-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
}
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #bfdbfe;
}
.meta-strip {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #334155;
}
.meta-pill.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #166534;
}
.meta-pill.warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.status-good { color: var(--success); border-color: #a7f3d0; background: #ecfdf5; }

.page-content {
  display: grid;
  gap: 14px;
}
.split-two {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #475569;
  background: #f2f6ff;
}
.table th, .table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 8px;
}
.table tbody tr:hover {
  background: #eef4ff;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
}
.b-draft { background: #f3f4f6; color: #374151; }
.b-ready { background: #e0e7ff; color: #3730a3; }
.b-scheduled { background: #dbeafe; color: #1d4ed8; }
.b-processing { background: #fef3c7; color: #92400e; }
.b-published { background: #dcfce7; color: #166534; }
.b-failed { background: #fee2e2; color: #991b1b; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: span 2; }
label { font-size: 13px; color: #334155; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #9ab5ff;
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.16);
}
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }

.dropzone {
  border: 1.5px dashed #cbd5e1;
  background: #f4f8ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #475569;
}
.upload-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
  transition: width 300ms ease;
}

.activity-list { display: grid; gap: 10px; }
.activity-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
  font-size: 13px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  align-items: end;
  height: 160px;
}
.bar {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 7px 7px 4px 4px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #101c38;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.compliance {
  background: #edf4ff;
  border: 1px solid #c3d9ff;
  color: #183b87;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #334155;
  margin: 0 0 10px;
}
.kpi-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fbff;
  font-size: 12px;
}
.filter-btn-active {
  background: #e0ecff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.subtle-list {
  display: grid;
  gap: 8px;
}
.subtle-list-item {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 40;
}
.modal-card {
  max-width: 430px;
  margin: 10vh auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .topbar-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .split-two { grid-template-columns: 1fr; }
}

