/* ============================================================
   FacilityOS — Client Applications launchpad
   Brand palette sourced from facilityos.com
   ============================================================ */
:root {
  --navy: #000B27;
  --slate: #333A4A;
  --muted: #7A8492;
  --surface: #F7F7F9;
  --white: #FFFFFF;
  --blue: #1163B9;
  --cyan: #00C8FF;
  --sky: #B5D1EF;
  --lilac: #CFC6E8;

  --ink: #000B27;          /* primary text */
  --ink-soft: #4b5566;     /* secondary text */

  --card-bg: #FFFFFF;
  --card-border: #E7EAF0;
  --card-border-hover: rgba(17, 99, 185, 0.55);

  --font-head: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(0, 200, 255, 0.08) 0%, transparent 60%),
    radial-gradient(760px 480px at -5% 4%, rgba(17, 99, 185, 0.06) 0%, transparent 55%),
    var(--white);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Decorative background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 11, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 11, 39, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 640px at 50% 6%, #000 25%, transparent 78%);
}
.bg-glow {
  position: fixed;
  top: -18%;
  right: -10%;
  width: 640px;
  height: 640px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.10) 0%, transparent 65%);
  filter: blur(30px);
}

/* Layout wrappers sit above background */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--cyan); }

/* ---------- Main / Hero ---------- */
main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 80px;
  flex: 1;
}

.hero { max-width: 720px; margin: 32px 0 56px; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 16px;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;          /* brand standard: normal bold, not extrabold/black */
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- App grid ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 11, 39, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
/* Hover highlights — lilac #CFC6E8 on the Desktop Client, brand blue on the Console */
.app-card[data-accent="lilac"]::before { background: radial-gradient(420px 180px at 100% 0%, rgba(207, 198, 232, 0.55), transparent 60%); }
.app-card[data-accent="blue"]::before  { background: radial-gradient(420px 180px at 100% 0%, rgba(17, 99, 185, 0.12), transparent 60%); }

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 22px 48px -26px rgba(17, 99, 185, 0.55);
}
.app-card:hover::before { opacity: 1; }
.app-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* No outline/box on the icon container — the card border is the only one we use */
.app-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.app-icon img { width: 44px; height: 44px; display: block; }

.app-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.app-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
  flex: 1;
}

.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
}
.app-cta .arrow { transition: transform 0.2s ease; }
.app-card:hover .app-cta .arrow { transform: translateY(4px); }

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-suite {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.footer-suite ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-suite li { display: flex; }
.footer-suite a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--blue);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(17, 99, 185, 0.06);
  border: 1px solid rgba(17, 99, 185, 0.14);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-suite a:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}
.footer-suite a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.footer-legal { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .site-header { padding: 22px 20px; }
  main { padding: 24px 20px 60px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
