/*
Causara RCA — Premium Design System
Based on Apple Human Interface + Veriona Brand
Palette: Navy #1C2D55 | Teal #168296 | Gold #C39E32 | Warm White #F7F4EF
*/

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --navy:       #1C2D55;
  --navy-dark:  #152244;
  --navy-mid:   #243463;
  --teal:       #168296;
  --teal-mid:   #1a8fa6;
  --teal-soft:  #5AAEBB;
  --teal-pale:  #e4f4f7;
  --teal-faint: #f2fafb;
  --gold:       #C39E32;
  --gold-light: #f5edd5;
  --gold-dark:  #a07020;
  --bg:         #F7F4EF;
  --surface:    #FFFFFF;
  --surface-2:  #f8f7f4;

  /* Sidebar */
  --sidebar-bg:     rgba(26, 45, 85, 0.97);
  --sidebar-fg:     rgba(255, 255, 255, 0.92);
  --sidebar-muted:   rgba(255, 255, 255, 0.42);
  --sidebar-hover:   rgba(255, 255, 255, 0.10);
  --sidebar-active: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:       #1A202C;
  --text-mid:   #4A5568;
  --text-muted: #8896A4;

  /* Borders */
  --border:      rgba(26, 107, 124, 0.09);
  --border-mid:  rgba(26, 107, 124, 0.18);
  --border-strong: rgba(26, 107, 124, 0.28);

  /* Semantic */
  --green:       #1D7A4E;
  --green-bg:    #E6F5EE;
  --amber:       #8A5A00;
  --amber-bg:    #FFF3D6;
  --red:         #B91C1C;
  --red-bg:      #FEE8E8;
  --blue:        #1A56B4;
  --blue-bg:     #E8F0FE;

  /* Radii */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(26,45,85,0.06);
  --shadow-sm:  0 1px 3px rgba(26,107,124,0.06), 0 1px 2px rgba(26,107,124,0.04);
  --shadow:     0 4px 16px rgba(26,107,124,0.08), 0 1px 4px rgba(26,107,124,0.04);
  --shadow-lg:  0 12px 40px rgba(26,107,124,0.12), 0 4px 12px rgba(26,107,124,0.06);
  --shadow-xl:  0 24px 64px rgba(26,107,124,0.14);

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,107,124,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,107,124,0.38); }

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

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding-bottom: 28px;
}

.sidebar-header {
  padding: 26px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 3px;
}

.sidebar-brand .logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.sidebar-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.sidebar-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.sidebar-section {
  padding: 20px 12px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.sidebar-nav { list-style: none; padding: 0 12px; }
.sidebar-nav li { margin-bottom: 1px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  color: var(--sidebar-muted);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg);
}
.sidebar-nav a.active {
  background: var(--sidebar-active);
  color: white;
  font-weight: 600;
}
.sidebar-nav .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav .badge-count {
  margin-left: auto;
  background: rgba(255,255,255,0.14);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-spacer { flex: 1; }

.sidebar-footer {
  padding: 14px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: white; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user-email { font-size: 0.7rem; color: rgba(255,255,255,0.38); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.sidebar-signout:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.72); }

/* ── Main ───────────────────────────────────────────────────── */
.main-content {
  margin-left: 252px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ───────────────────────────────────────────────── */
.top-bar {
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-bar-email { font-size: 0.8rem; color: var(--text-muted); }
.top-bar-home { display: none; font-size: 1.1rem; text-decoration: none; line-height: 1; flex-shrink: 0; }

/* ── Page content ───────────────────────────────────────────── */
.content-area { padding: 36px 40px; max-width: 1140px; width: 100%; }

.page-intro { margin-bottom: 32px; }
.page-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.page-intro p { font-size: 0.86rem; color: var(--text-muted); }

.page-header { margin-bottom: 28px; }
.page-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.card-body { padding: 22px; }

/* ── Stat strip ────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.stat-icon-teal  { background: var(--teal-pale); }
.stat-icon-gold  { background: var(--gold-light); }
.stat-icon-soft  { background: rgba(90,174,187,0.14); }
.stat-icon-red   { background: var(--red-bg); }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.stat-number { font-size: 1.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1; }

/* ── Grid layouts ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* ── Section headers ───────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.section-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-open        { background: var(--blue-bg);   color: var(--blue); }
.badge-in_progress { background: var(--amber-bg);  color: var(--amber); }
.badge-closed      { background: var(--red-bg);    color: var(--red); }
.badge-resolved    { background: var(--green-bg);  color: var(--green); }
.badge-active      { background: var(--green-bg);  color: var(--green); }
.badge-new         { background: var(--gold-light);color: var(--gold-dark); }
.badge-review      { background: var(--amber-bg);  color: var(--amber); }
.badge-priority-critical { background: var(--red-bg); color: var(--red); }
.badge-priority-high      { background: var(--amber-bg); color: var(--amber); }
.badge-priority-medium    { background: var(--blue-bg); color: var(--blue); }
.badge-priority-low       { background: var(--teal-pale); color: var(--teal); }
.badge-green   { background: var(--green-bg); color: var(--green); }
.badge-neutral { background: #ECEFF3; color: var(--text-mid); }

/* ── List items ────────────────────────────────────────────── */
.list-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.list-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.list-item-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.list-item-meta { font-size: 0.76rem; color: var(--text-muted); }
.list-item-desc { font-size: 0.83rem; color: var(--text-mid); margin-top: 4px; line-height: 1.5; }
.list-item-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.ref-tag {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

/* ── Empty states ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.2rem; margin-bottom: 12px; opacity: 0.35; }
.empty-state p { font-size: 0.86rem; }

/* ── Loading spinner ───────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 80px 40px; color: var(--text-muted); font-size: 0.88rem; }
.loading-spinner { width: 30px; height: 30px; border: 2.5px solid var(--border-mid); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 40px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,130,150,0.25);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal-pale); color: var(--teal-mid); }

.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,45,85,0.25);
  color: white;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(195,158,50,0.3);
  color: white;
}

.btn-white {
  background: white;
  color: var(--navy);
  border-color: white;
}
.btn-white:hover { background: var(--bg); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--teal-pale); color: var(--teal); }

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: transparent;
}
.btn-danger:hover { background: var(--red); color: white; }

.btn-sm { padding: 6px 13px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.form-control, .form-select {
  width: 100%;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-mid);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22,130,150,0.1);
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-control.error { border-color: var(--red); }
.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.76rem; color: var(--red); margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.875rem; border-radius: var(--radius); overflow: hidden; }
thead { background: var(--navy); color: white; }
thead th { padding: 11px 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--teal-faint); }
td { padding: 12px 16px; vertical-align: middle; color: var(--text); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert { padding: 11px 15px; border-radius: var(--radius-sm); font-size: 0.84rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(29,122,78,0.15); }
.alert-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid rgba(185,28,28,0.15); }
.alert-info    { background: var(--blue-bg);  color: var(--blue);  border: 1px solid rgba(26,86,180,0.15); }
.alert-warning { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(138,90,0,0.15); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 20px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 0.83rem; font-weight: 500; text-decoration: none; transition: all var(--transition); }
.pagination a { color: var(--text-mid); border: 1px solid var(--border); }
.pagination a:hover { background: var(--teal-pale); color: var(--teal); border-color: var(--teal); }
.pagination .active { background: var(--teal); color: white; border-color: var(--teal); font-weight: 600; }

/* ── Flex helpers ──────────────────────────────────────────── */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap-2 { display: flex; gap: 8px; align-items: center; }
.text-muted { color: var(--text-muted); font-size: 0.83rem; }
.text-sm { font-size: 0.8rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ── Public layout (login, register, landing) ───────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-card-header {
  padding: 36px 36px 28px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.auth-card-header .logo-mark {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin: 0 auto 14px;
}
.auth-card-header h1 { font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; margin-bottom: 4px; }
.auth-card-header p { font-size: 0.86rem; color: var(--text-muted); }

.auth-card-body { padding: 28px 36px 32px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }

.auth-footer { padding: 18px 36px; background: var(--surface-2); border-top: 1px solid var(--border); text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.auth-footer a { color: var(--teal); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Landing page ──────────────────────────────────────────── */
.landing-nav {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.landing-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-nav-brand .logo-mark {
  width: 34px; height: 34px; background: var(--navy); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--gold);
}
.landing-nav-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.landing-nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.landing-nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-mid); text-decoration: none; transition: color var(--transition); }
.landing-nav-links a:hover { color: var(--teal); }

.landing-hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 60%, #0f1d3a 100%);
  color: white;
  padding: 80px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.landing-hero > * { position: relative; }
.landing-hero-tag {
  display: inline-block;
  background: rgba(195,158,50,0.18);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(195,158,50,0.3);
  margin-bottom: 20px;
}
.landing-hero h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.04em; color: white; margin-bottom: 16px; line-height: 1.15; }
.landing-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 32px; line-height: 1.6; }
.landing-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.landing-stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 40px;
}
.landing-stats-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.landing-stat { text-align: center; }
.landing-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--teal); letter-spacing: -0.03em; }
.landing-stat-label { font-size: 0.76rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.landing-section { padding: 72px 40px; }
.landing-section-alt { background: var(--surface); }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-heading { font-size: 1.9rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; margin-bottom: 10px; }
.section-sub { font-size: 0.95rem; color: var(--text-muted); max-width: 480px; line-height: 1.65; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 36px; }
.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.tool-card-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.tool-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.tool-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.landing-cta {
  background: linear-gradient(135deg, var(--teal) 0%, #0f6070 100%);
  padding: 64px 40px;
  text-align: center;
  color: white;
}
.landing-cta h2 { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -0.03em; }
.landing-cta p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 28px; }

.landing-footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 28px 40px; text-align: center; font-size: 0.8rem; }
.landing-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.landing-footer a:hover { color: white; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 24px 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-size: 0.9rem; font-weight: 700; color: white; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 16px; padding-top: 16px; text-align: center; font-size: 0.76rem; color: rgba(255,255,255,0.3); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .content-area { padding: 20px 16px; }
  .top-bar { padding: 0 16px; }
  .top-bar-home { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
