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

:root {
  /* Surface — extracted from the live Office Launchpad source */
  --bg-0: #0D1B2A;
  --bg-1: #0F2238;
  --bg-2: #142436;
  --bg-3: #1A2C42;
  --line: #273449;
  --hair: rgba(255,255,255,0.06);
  --ink: #FFFFFF;
  --ink-2: #CBD5E1;
  --ink-3: #94A3B8;
  --ink-4: #6B7A91;

  /* Brand co-primaries — canonical (per user) */
  --red: #E63946;
  --red-2: #CF212E;
  --red-soft: #FCA5A5;
  --blue: #016EAD;
  --blue-2: #015589;
  --blue-soft: #93C5FD;
  --green: #059669;
  --amber: #D89E2A;

  --font-display: "Big Shoulders Display", "Impact", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(1,110,173,0.18) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(230,57,70,0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.1;
}
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h3 { font-size: 17px; font-weight: 700; }
h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red-soft);
}
p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
::selection { background: var(--red); color: white; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 36px 28px 80px; }

/* ============ Hero ============ */
.hero {
  display: flex; align-items: center; gap: 28px;
  background: #000;
  border-radius: 16px;
  border: 1px solid var(--hair);
  padding: 32px 36px;
  margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(1,110,173,0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(230,57,70,0.14), transparent 55%);
}
.hero-logo { flex: 1 1 auto; min-width: 240px; max-width: 520px; position: relative; z-index: 1; }
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.12); position: relative; z-index: 1; }
.hero-text { position: relative; z-index: 1; flex: 1 1 240px; }
.hero-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red-soft);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.hero-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.hero-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.hero-sub {
  color: var(--ink-3); font-size: 13px; margin-top: 8px;
  letter-spacing: 0.02em; line-height: 1.55; max-width: 38ch;
}
.hero-greeting {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-top: 12px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); position: relative;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--red); opacity: 0.6;
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ============ Notification card ============ */
.notif-card {
  margin: 22px 0 10px;
  background: linear-gradient(135deg, rgba(230,57,70,0.10), rgba(216,158,42,0.08));
  border: 1px solid rgba(230,57,70,0.32);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(230,57,70,0.10);
}
.notif-head { display: flex; align-items: center; gap: 12px; }
.notif-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.notif-bell { font-size: 18px; line-height: 1; filter: drop-shadow(0 0 6px rgba(216,158,42,0.45)); }
.notif-count {
  background: var(--red); color: #fff;
  min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.notif-label { color: var(--ink-2); }
.notif-toggle {
  margin-left: auto; background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ink-2); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.notif-body { display: grid; gap: 10px; margin-top: 14px; }
.notif-group {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.notif-group:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(230,57,70,0.45);
  transform: translateY(-1px);
}
.notif-glyph {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--hair);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: -0.5px; color: #fff;
}
.notif-glyph.glyph-inv { color: var(--blue-soft); }
.notif-glyph.glyph-gm  { color: var(--red-soft); }
.notif-text strong { display: block; font-size: 14px; font-weight: 700; }
.notif-text small  { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.notif-cta { color: var(--ink-4); font-size: 18px; }

/* ============ Section title ============ */
.section-title {
  display: flex; align-items: center; gap: 10px; margin: 32px 0 14px;
}
.section-title::before {
  content: ""; width: 4px; height: 22px;
  background: var(--red); border-radius: 2px;
}
.section-title.blue::before { background: var(--blue); }
.section-title h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 22px; font-weight: 800;
}
.section-meta {
  margin-left: auto; font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}

/* ============ Tile grid ============ */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  perspective: 1400px;
}
.tile {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 0 0 18px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
  color: inherit; font-family: inherit;
  position: relative; overflow: hidden;
  min-height: 300px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.10);
  background: var(--bg-2);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.70), 0 0 0 1px rgba(255,255,255,0.06);
}
.tile.accent-red:hover {
  box-shadow: 0 30px 60px -22px rgba(230,57,70,0.45), 0 0 0 1px rgba(230,57,70,0.30);
  border-color: rgba(230,57,70,0.40);
}
.tile.accent-blue:hover {
  box-shadow: 0 30px 60px -22px rgba(1,110,173,0.45), 0 0 0 1px rgba(1,110,173,0.30);
  border-color: rgba(1,110,173,0.40);
}
.tile-illust {
  width: 100%; aspect-ratio: 16 / 8;
  background:
    radial-gradient(circle at 30% 20%, rgba(1,110,173,0.20), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(230,57,70,0.20), transparent 60%),
    var(--bg-3);
  border-bottom: 1px solid var(--hair);
  position: relative; overflow: hidden;
}
.tile.accent-red .tile-illust {
  background:
    radial-gradient(circle at 30% 20%, rgba(230,57,70,0.32), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(1,110,173,0.10), transparent 60%),
    #0E1B2C;
}
.tile.accent-blue .tile-illust {
  background:
    radial-gradient(circle at 30% 20%, rgba(1,110,173,0.36), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(230,57,70,0.10), transparent 60%),
    #0E1B2C;
}
.tile-illust svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.tile-body { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-icon {
  width: 48px; height: 48px; border-radius: 11px;
  background: var(--bg-3); color: var(--blue-soft);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  border: 1px solid var(--hair);
}
.tile.accent-red  .tile-icon {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  color: white; border: none;
}
.tile.accent-blue .tile-icon {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: white; border: none;
}
.tile-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.tile-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; flex: 1; }
.tile-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  margin-top: 6px;
}
.tile-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-3); color: var(--ink-3); border: 1px solid var(--hair);
}
.tile-pill.modal { background: rgba(1,110,173,0.18); color: var(--blue-soft); border-color: rgba(1,110,173,0.35); }
.tile-pill.external { background: rgba(216,158,42,0.18); color: #FCD68D; border-color: rgba(216,158,42,0.35); }
.tile-arrow {
  color: var(--ink-4); font-size: 16px; font-weight: 700;
  transition: transform .18s, color .18s;
}
.tile:hover .tile-arrow { color: var(--blue-soft); transform: translateX(3px); }
.tile.accent-red:hover .tile-arrow { color: var(--red-soft); }

/* ============ Modal preview ============ */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(5, 12, 22, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100; display: none;
}
.modal-scrim.show { display: block; }
.modal {
  position: fixed; inset: 36px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  z-index: 101; display: none;
  flex-direction: column; overflow: hidden;
}
.modal.show { display: flex; }
.modal-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--hair);
}
.modal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,0.18); }
.modal-title { font-weight: 700; font-size: 14px; }
.modal-url { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--ink-4); }
.modal-actions { margin-left: auto; display: flex; gap: 6px; }
.modal-btn {
  padding: 7px 12px; font-size: 12px; font-weight: 600;
  background: var(--bg-3); color: var(--ink-2);
  border: 1px solid var(--hair); border-radius: 7px;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.modal-btn.close { background: var(--red); color: white; border-color: var(--red); }
.modal-body {
  flex: 1; background: #000;
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 32px;
}
.modal-body .ph {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* ============ Footer ============ */
.foot {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  text-align: center;
  font-size: 10.5px; color: var(--ink-4);
  letter-spacing: 0.20em; text-transform: uppercase; font-weight: 600;
}
.foot strong { color: var(--ink-3); }
