/* ================================================================
   WELCOME — the modal shown once per browser session when a visitor
   lands on the site (see features/welcome/welcome.js for the
   session-storage gate and open/close logic). Shares the same
   fixed-overlay/backdrop/panel shell as the sample-work modal
   (features/work/work.css) so the two popups feel like one system.
   The gradient badge is this modal's one signature touch — the same
   gradient the hero banner uses, at icon scale instead of full-bleed.
   ================================================================ */

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.welcome-modal[hidden] { display: none; }

.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.5);
}

.welcome-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: 32px 28px 28px;
  text-align: center;
}
.welcome-modal-panel:focus { outline: none; }

.welcome-modal-close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-page);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-modal-close svg { width: 14px; height: 14px; }
.welcome-modal-close:hover { background: var(--border); color: var(--text-primary); }

.welcome-modal-badge {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-block-end: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(120deg, var(--color-deepwater), var(--color-primary-deep) 35%, var(--color-primary) 65%, var(--color-cyan));
}
.welcome-modal-badge svg { width: 26px; height: 26px; }

.welcome-modal-title { margin-block-end: 10px; }
.welcome-modal-body {
  color: var(--text-muted);
  margin-block-end: 26px;
}

.welcome-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-modal-actions .btn { width: 100%; }

.welcome-modal-tour {
  background: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.welcome-modal-tour:hover { box-shadow: var(--shadow-control); }
.welcome-modal-tour svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Prevents the page behind the modal from scrolling while it's open. */
body.welcome-modal-open { overflow: hidden; }
