@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;

  --sidebar-bg: #14102b;
  --sidebar-bg-hover: #221a45;
  --sidebar-text: #a5a0c2;
  --sidebar-border: rgba(255, 255, 255, 0.08);

  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f7fb;
  --surface: #ffffff;

  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --error: #dc2626;
  --error-bg: #fee2e2;

  --tile-blue: #2563eb; --tile-blue-bg: #dbeafe;
  --tile-green: #059669; --tile-green-bg: #d1fae5;
  --tile-red: #dc2626; --tile-red-bg: #fee2e2;
  --tile-amber: #d97706; --tile-amber-bg: #fef3c7;
  --tile-purple: #7c3aed; --tile-purple-bg: #ede9fe;
  --tile-pink: #db2777; --tile-pink-bg: #fce7f3;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  --sidebar-width: 248px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1e3a8a 0%, #111827 45%, #0b1120 100%);
  padding: 1.5rem;
}
.login-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.login-brand .mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.login-brand .company { font-weight: 700; font-size: 1.1rem; color: var(--text); line-height: 1.2; }
.login-brand .tagline { font-size: 0.78rem; color: var(--muted); }
.login-box h1 { display: none; }

/* Split login layout */
.login-split-page { margin: 0; background: var(--bg); }
.login-split { display: flex; min-height: 100vh; }
.login-panel-left {
  flex: 1.1;
  background:
    radial-gradient(circle at 80% 15%, rgba(99, 102, 241, 0.35), rgba(0,0,0,0) 40%),
    linear-gradient(160deg, #14102b 0%, #1e1b4b 55%, #0b0a1f 100%);
  color: #fff;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand-lg { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 2.5rem; }
.login-brand-lg .mark {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
}
.login-brand-lg .company { font-weight: 700; font-size: 1.3rem; }
.login-brand-lg .tagline { font-size: 0.82rem; color: #a5a0c2; }
.login-panel-left h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin: 0 0 1rem; max-width: 420px; }
.login-panel-left p { color: #c7c2e0; font-size: 1rem; line-height: 1.6; max-width: 400px; }
.login-panel-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.login-panel-right .login-box { box-shadow: none; border: 1px solid var(--border); }
.login-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.25rem; display: block !important; }
.login-subtitle { margin: 0 0 1.5rem; }

@media (max-width: 900px) {
  .login-panel-left { display: none; }
  .login-panel-right { padding: 1.25rem; }
}

/* App shell */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: transform 0.2s ease;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-brand .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.sidebar-brand .name { color: #fff; font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.sidebar-brand .sub { display: block; color: var(--sidebar-text); font-size: 0.68rem; font-weight: 400; }

.sidebar-nav { flex: 1; padding: 0.75rem; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.sidebar-nav a:hover { background: var(--sidebar-bg-hover); color: #fff; text-decoration: none; }
.sidebar-nav a.active { background: var(--brand-600); color: #fff; }
.sidebar-nav a.active svg { opacity: 1; }

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--sidebar-border); }
.sidebar-user { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.sidebar-user .avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.78rem; flex-shrink: 0;
}
.sidebar-user .info { line-height: 1.25; min-width: 0; }
.sidebar-user .name { color: #fff; font-size: 0.83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .role { font-size: 0.68rem; color: var(--sidebar-text); text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-footer .logout {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--sidebar-text); font-size: 0.82rem; font-weight: 500;
}
.sidebar-footer .logout svg { width: 16px; height: 16px; }
.sidebar-footer .logout:hover { color: #fff; text-decoration: none; }

.sidebar-backdrop { display: none; }

.app-main { flex: 1; min-width: 0; margin-left: var(--sidebar-width); }
.mobile-topbar { display: none; }

.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 25;
}
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search svg {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.topbar-search input { padding-left: 2.25rem; background: var(--bg); border-color: transparent; }
.topbar-search input:focus { background: var(--surface); }
.topbar-spacer { flex: 1; }
.topbar-icons { display: flex; align-items: center; gap: 0.4rem; }
.topbar-icon-btn {
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); position: relative; flex-shrink: 0;
  background: transparent; border: none; box-shadow: none;
}
.topbar-icon-btn:hover { background: var(--bg); text-decoration: none; }
.topbar-icon-btn svg { width: 19px; height: 19px; }
.topbar-icon-btn .dot {
  position: absolute; top: 6px; right: 7px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--error); border: 2px solid var(--surface);
}
.topbar-user { display: flex; align-items: center; gap: 0.6rem; padding-left: 0.5rem; }
.topbar-user .avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; flex-shrink: 0;
}
.topbar-user .info { line-height: 1.2; }
.topbar-user .name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.topbar-user .role { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 900px) { .topbar { display: none; } }
.sidebar-mobile-only { display: none; }
@media (max-width: 900px) { .sidebar-mobile-only { display: flex; } }

.content { padding: 2rem; max-width: 1200px; margin: 0 auto; }
.content > h2:first-child { margin-top: 0; }

/* Forms */
form { display: flex; flex-direction: column; gap: 0.9rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; font-weight: 500; color: var(--text); }
input, select, textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.password-field { position: relative; }
.password-field input { padding-right: 2.5rem; width: 100%; }
.password-toggle {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; box-shadow: none; color: var(--muted);
  width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { color: var(--text); background: var(--bg); border-radius: var(--radius-sm); }
.password-toggle svg { width: 17px; height: 17px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; }

button, .btn {
  background: var(--brand-600);
  color: #fff;
  border: none;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
button:hover, .btn:hover { background: var(--brand-700); text-decoration: none; box-shadow: var(--shadow); }
button:active, .btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: var(--error); }
.btn-danger:hover { background: #b91c1c; }

/* Cards / panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.panel h2 { margin-top: 0; font-size: 1.05rem; font-weight: 600; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.action-grid .btn {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
}
.action-grid .btn svg { width: 24px; height: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.stat-card .icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  order: 2;
}
.stat-card .icon svg { width: 20px; height: 20px; }
.stat-card .body { order: 1; }
.stat-card .value { font-size: 1.85rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.stat-card .label { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.stat-card .label a { color: inherit; }
.stat-card .label .unavailable { color: var(--muted); font-style: italic; }

.stat-card--blue .icon { background: var(--tile-blue-bg); color: var(--tile-blue); }
.stat-card--green .icon { background: var(--tile-green-bg); color: var(--tile-green); }
.stat-card--red .icon { background: var(--tile-red-bg); color: var(--tile-red); }
.stat-card--amber .icon { background: var(--tile-amber-bg); color: var(--tile-amber); }
.stat-card--purple .icon { background: var(--tile-purple-bg); color: var(--tile-purple); }
.stat-card--pink .icon { background: var(--tile-pink-bg); color: var(--tile-pink); }

.chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.chart-legend .dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }

.avatar-sm {
  width: 32px; height: 32px; border-radius: 999px;
  object-fit: cover; border: 1px solid var(--border);
  background: var(--bg); flex-shrink: 0;
}
.avatar-sm-fallback {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.72rem; flex-shrink: 0;
}
.cell-with-avatar { display: flex; align-items: center; gap: 0.6rem; }

/* Profile tabs */
.profile-header { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-header .photo-preview { margin: 0; }
.tab-nav { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-nav button {
  background: none; border: none; box-shadow: none; color: var(--muted);
  padding: 0.7rem 1rem; font-weight: 600; font-size: 0.85rem;
  border-radius: 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-nav button:hover { background: var(--bg); color: var(--text); }
.tab-nav button.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.87rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.table-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.table-actions form { display: flex; gap: 0.4rem; align-items: center; }
.reject-form input[type="text"] { padding: 0.4rem 0.6rem; }

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-active, .badge-approved { background: var(--success-bg); color: var(--success); }
.badge-bench, .badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-inactive { background: #f1f5f9; color: var(--muted); }
.badge-rejected { background: var(--error-bg); color: var(--error); }

.muted-note { color: var(--muted); font-size: 0.85rem; margin-top: -0.4rem; }

.photo-preview {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 0.35rem;
}

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.toolbar h2 { font-size: 1.35rem; font-weight: 700; }
.filter-bar { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-bar label { flex-direction: row; align-items: center; gap: 0.4rem; }

.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); border-color: var(--error); }

.empty-state { color: var(--muted); padding: 2.5rem 1rem; text-align: center; font-size: 0.9rem; }

/* Site picker (chip-based multi-select) */
.site-picker { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; background: var(--bg); }
.site-picker-toolbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-picker-search { position: relative; flex: 1; min-width: 220px; }
.site-picker-search svg { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.site-picker-search input { width: 100%; padding-left: 2.1rem; background: var(--surface); }
.site-picker-count { font-size: 0.78rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.site-picker-body { max-height: 320px; overflow-y: auto; padding-right: 0.25rem; }
.site-group { margin-bottom: 1rem; }
.site-group:last-child { margin-bottom: 0; }
.site-group-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.5rem; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.site-chip-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  user-select: none;
}
.site-chip-label:hover { border-color: var(--brand-500); background: var(--brand-50); }
.site-chip.selected .site-chip-label { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.site-chip-check { width: 12px; height: 12px; display: none; flex-shrink: 0; }
.site-chip.selected .site-chip-check { display: inline-block; }

/* Searchable picker (combobox) */
.combobox { position: relative; }
.combobox-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.combobox-results.open { display: block; }
.combobox-option {
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 40px;
}
.combobox-option:hover, .combobox-option.active { background: var(--bg); }
.combobox-option .combobox-sub { color: var(--muted); font-size: 0.78rem; flex-shrink: 0; }
.combobox-empty { padding: 0.65rem 0.85rem; color: var(--muted); font-size: 0.85rem; }

/* Sidebar collapses to an off-canvas drawer */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 25;
  }
  .mobile-topbar .brand { font-weight: 600; font-size: 0.92rem; flex: 1; }
  .menu-btn {
    background: none; border: 1px solid var(--border); box-shadow: none;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    color: var(--text); font-size: 1.1rem; padding: 0;
  }
  .menu-btn:hover { background: var(--bg); }

  .sidebar-backdrop.open {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 35;
  }
}

/* Landing page */
.landing {
  --ink: #050505;
  --card-dark: #15171d;
  background: var(--surface);
}

.landing-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; color: inherit; }
.landing-brand .mark {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; letter-spacing: -0.02em;
  flex-shrink: 0;
}

.landing-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
}
.landing-nav-inner { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.landing-nav-inner nav { display: flex; gap: 1.5rem; flex: 1; }
.landing-nav-inner nav a { color: rgba(255,255,255,0.72); font-weight: 500; font-size: 0.92rem; }
.landing-nav-inner nav a:hover { color: #fff; text-decoration: none; }
.landing-nav-inner .btn { font-weight: 700; }

.landing-eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; font-weight: 700; color: var(--brand-500);
  margin: 0 0 0.6rem;
}
.landing-section-dark .landing-eyebrow { color: var(--brand-500); }

.landing-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.28), rgba(0,0,0,0) 32%),
    linear-gradient(135deg, var(--ink) 0%, #111827 60%, #0b1120 100%);
  color: #fff;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
}
.landing-hero-inner { max-width: 700px; margin: 0 auto; }
.landing-hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin: 0 0 1.1rem; letter-spacing: -0.01em; }
.landing-hero p { font-size: 1.08rem; color: #cbd5e1; line-height: 1.65; margin: 0 0 2.25rem; }
.landing-hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; font-weight: 800; box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34); }
.btn-lg:hover { box-shadow: 0 18px 38px rgba(37, 99, 235, 0.42); }
.landing-hero .btn-secondary, .landing-nav .btn-secondary {
  background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.22); box-shadow: none;
}
.landing-hero .btn-secondary:hover, .landing-nav .btn-secondary:hover { background: rgba(255,255,255,0.18); }

.landing-section { max-width: 1100px; margin: 0 auto; padding: 5rem 1.5rem; }
.landing-section h2 { font-size: 2rem; font-weight: 700; text-align: center; margin: 0 0 2.5rem; }
.landing-section-dark {
  background: var(--ink); color: #fff;
  max-width: none; padding: 4.5rem 1.5rem;
}
.landing-section-dark h2 { color: #fff; }
.landing-section-dark > * { max-width: 700px; margin-left: auto; margin-right: auto; }

.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.landing-card {
  background: var(--card-dark); color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.75rem;
}
.landing-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.15); color: var(--brand-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.landing-card-icon svg { width: 22px; height: 22px; }
.landing-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; color: #fff; }
.landing-card p { color: rgba(255,255,255,0.62); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.landing-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.landing-checklist li { padding-left: 2rem; position: relative; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,0.85); }
.landing-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -0.05rem;
  width: 1.4rem; height: 1.4rem; border-radius: 999px;
  background: rgba(59, 130, 246, 0.18); color: var(--brand-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}

.landing-contact-text { text-align: center; max-width: 560px; margin: 0 auto 2rem; color: var(--muted); }

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
  color: var(--text);
}
.landing-footer p { color: var(--muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 640px) {
  .content { padding: 1.1rem; }
  .login-box { padding: 2rem 1.5rem; }
  .form-grid, .action-grid { grid-template-columns: 1fr; }

  input, select, textarea, button, .btn { font-size: 16px; min-height: 44px; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .btn, .toolbar a.btn { text-align: center; }

  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

  .landing-nav-inner { flex-wrap: wrap; gap: 0.75rem; }
  .landing-nav-inner nav { order: 3; width: 100%; justify-content: center; gap: 1rem; }
  .landing-hero { padding: 3.5rem 1.25rem; }
  .landing-hero h1 { font-size: 1.7rem; }
  .landing-section { padding: 3rem 1.25rem; }
}
