/* Hub landing page. Palette and typography mirror tracecapital.com:
   institutional navy on white, bold uppercase headings, generous whitespace. */

:root {
  --navy:       #0B2545;
  --navy-hover: #13345f;
  --ink:        #0b1320;
  --ink-2:      #36445b;
  --muted:      #6b7280;
  --line:       #e5e7eb;
  --line-2:     #d1d5db;
  --bg:         #ffffff;
  --bg-soft:    #f7f8fa;
  --card:       #ffffff;
  --radius:     10px;
  --shadow-sm:  0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md:  0 10px 32px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-divider {
  height: 22px;
  width: 1px;
  background: var(--line-2);
  margin: 0 4px;
}
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
#user-name { font-weight: 500; color: var(--ink-2); }

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--navy);
  color: white;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--navy-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--navy); }

.hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.hub-header { margin-bottom: 44px; }
.hub-header .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px 0;
}
.hub-header h2 {
  margin: 0 0 8px 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hub-header p {
  margin: 0;
  font-size: 15px;
  max-width: 620px;
  color: var(--ink-2);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tile {
  display: block;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
  min-height: 200px;
  position: relative;
}
.tile:hover:not(.tile-disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}
.tile:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.tile-disabled {
  cursor: not-allowed;
  background: var(--bg-soft);
}
.tile-disabled .tile-body h3 { color: var(--ink-2); }
.tile-disabled .tile-icon { opacity: 0.55; }

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: white;
  display: grid;
  place-items: center;
  background: var(--navy);
  margin-bottom: 20px;
}
.tile-icon svg { width: 22px; height: 22px; }

.tile-body h3 {
  margin: 0 0 8px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tile-title-main {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 6px 0;
}
.tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--line);
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .top-bar { padding: 16px 22px; }
  .hub { padding: 40px 22px 56px; }
  .hub-header h2 { font-size: 28px; }
  .brand-divider, .brand-sub { display: none; }
  #user-name { display: none; }
}
