/* =========================================================
   Xumi Start Page
   Designed to mirror the Xumi Dispense app chrome:
   deep navy header + clean white content with quick-link cards.
   ========================================================= */

:root {
  /* Brand */
  --xumi-navy:        #0a1f4a;
  --xumi-navy-2:      #0d2658;
  --xumi-orange:      #F37C4C;
  --xumi-orange-dark: #e0683a;

  /* Accent (driven by Tweaks; default = Xumi navy) */
  --accent:           #1f3a78;
  --accent-soft:      #e8eef9;
  --accent-eyebrow:   #4a6cb3;

  /* Surface */
  --bg:        #ffffff;
  --ink:       #0f172a;
  --ink-2:     #475569;
  --ink-3:     #64748b;
  --line:      #e6e9ef;
  --line-2:    #eef1f6;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 0 rgba(15, 23, 42, .03);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fafbfd;
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----------- HEADER ------------ */
.x-header {
  background: var(--xumi-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.x-header[data-variant="gradient"] {
  background: linear-gradient(110deg, var(--xumi-navy) 0%, var(--xumi-navy-2) 55%, #14306e 100%);
}
.x-header[data-variant="gradient"]::after {
  content: "";
  position: absolute; right: -120px; top: 50%; width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(243,124,76,.18), transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
}
.x-header[data-variant="pillpattern"] {
  background:
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.05) 0 8px, transparent 9px),
    radial-gradient(circle at 76% 70%, rgba(255,255,255,.04) 0 6px, transparent 7px),
    radial-gradient(circle at 95% 60%, rgba(243,124,76,.12) 0 10px, transparent 11px),
    var(--xumi-navy);
}

.x-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.x-logo { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.x-logo__icon { width: 88px; height: auto; display: block; }
.x-logo__wordmark { width: 260px; height: auto; display: block; }

/* ----------- MAIN ------------ */
.x-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.x-hero { margin-bottom: 24px; }
.x-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-eyebrow);
}
.x-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--ink);
}
.x-subtitle {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ----------- TILES ------------ */
.x-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #94a3b8;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.x-section-label:first-of-type { margin-top: 14px; }

.x-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1080px) { .x-tiles { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px)  { .x-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px)  { .x-tiles { grid-template-columns: 1fr; } }

.x-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  min-height: 156px;
  position: relative;
  box-shadow: var(--card-shadow);
}
.x-tile:hover {
  border-color: #cdd6e6;
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.x-tile__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.x-tile__icon svg { width: 26px; height: 26px; }
.x-tile__icon[data-color="navy"]   { background: #eaeef7; color: var(--xumi-navy); }
.x-tile__icon[data-color="orange"] { background: linear-gradient(135deg,#fff1e8,#ffe1cf); color: var(--xumi-orange); }
.x-tile__icon[data-color="blue"]   { background: #e8f1fc; color: #2A8AE0; }
.x-tile__icon[data-color="teal"]   { background: #e1f4f4; color: #0e8a8a; }

.x-tile__body { display: flex; flex-direction: column; }
.x-tile__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.x-tile__meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.x-tile__ext {
  position: absolute;
  top: 18px; right: 18px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
}

/* ----------- FOOT ------------ */
.x-foot {
  margin-top: 56px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* ----------- ACCENT THEMES ------------ */
body[data-accent="navy"]   { --accent:#1f3a78; --accent-soft:#e8eef9; --accent-eyebrow:#4a6cb3; }
body[data-accent="blue"]   { --accent:#1d6dd0; --accent-soft:#e6f1fc; --accent-eyebrow:#2a8ad6; }
body[data-accent="orange"] { --accent:#d96a3a; --accent-soft:#fdeee5; --accent-eyebrow:#d96a3a; }
body[data-accent="teal"]   { --accent:#0e8a8a; --accent-soft:#e1f4f4; --accent-eyebrow:#128f8f; }
