/* ════════════════════════════════════════════════════════════════
   Forsait Welcome page
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0D1117;
  --surface:   #1C2333;
  --elev:      #232B3D;
  --border:    rgba(255,255,255,0.08);
  --text:      #E6EDF3;
  --text-dim:  #9DA7B7;
  --text-mute: #6E7785;
  --primary:   #58A6FF;
  --purple:    #BC8CFF;
  --warm:      #FFA657;
  --success:   #7EE787;
  --grad:      linear-gradient(135deg, #BC8CFF 0%, #58A6FF 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Top bar ─────────────────────────────────────── */
.welcome-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.welcome-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.welcome-logo__icon {
  filter: drop-shadow(0 0 6px rgba(188, 140, 255, 0.45));
  animation: logoPulse 4s ease-in-out infinite;
}
.welcome-logo__text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(188,140,255,0.4)); }
  50%      { filter: drop-shadow(0 0 12px rgba(88,166,255,0.7)); }
}

.welcome-topbar__signout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.welcome-topbar__signout:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

/* ── Page container ──────────────────────────────── */
.welcome-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ── Hero ────────────────────────────────────────── */
.welcome-hero {
  position: relative;
  text-align: center;
  padding: 8px 0 16px;
}
.welcome-hero__rings {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
}
.welcome-hero__rings .ring,
.welcome-hero__rings .dot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.welcome-hero__rings .ring {
  border: 1px solid rgba(188, 140, 255, 0.45);
  width: 24px;
  height: 24px;
  opacity: 0;
  animation: ringExpand 3.4s ease-out infinite;
}
.welcome-hero__rings .ring--1 { animation-delay: 0s; }
.welcome-hero__rings .ring--2 { animation-delay: 0.85s; }
.welcome-hero__rings .ring--3 { animation-delay: 1.7s; }
.welcome-hero__rings .ring--4 { animation-delay: 2.55s; }
.welcome-hero__rings .dot-core {
  width: 8px;
  height: 8px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(188, 140, 255, 0.7);
}
@keyframes ringExpand {
  0%   { width: 18px; height: 18px; opacity: 0.7; border-color: rgba(188,140,255,0.7); }
  60%  {                              opacity: 0.4; }
  100% { width: 90px; height: 90px; opacity: 0;   border-color: rgba(88,166,255,0); }
}

.welcome-hero__headline {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}
.welcome-hero__lead {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}
.welcome-hero__lead em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* ── Section base ────────────────────────────────── */
.welcome-section {
  margin: 36px 0;
}
.welcome-section__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.welcome-section__lead {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}

/* ── What you do — numbered steps ────────────────── */
.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.welcome-step:hover {
  border-color: rgba(88, 166, 255, 0.25);
  transform: translateX(2px);
}
.welcome-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.12);
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
}
.welcome-step__body strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.welcome-step__body p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── What you get — 2x2 grid ─────────────────────── */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.welcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.welcome-card:hover {
  border-color: rgba(188, 140, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88, 166, 255, 0.12);
}
.welcome-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.10);
  border: 1px solid rgba(88, 166, 255, 0.22);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
/* When the icon IS the Forsait gradient mark, drop the tinted box. */
.welcome-card__icon--logo {
  background: transparent;
  border: none;
  filter: drop-shadow(0 0 6px rgba(188, 140, 255, 0.45));
}
.welcome-card strong {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}
.welcome-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Important note ──────────────────────────────── */
.welcome-note {
  display: flex;
  margin: 36px 0 28px;
  background: rgba(255, 166, 87, 0.06);
  border: 1px solid rgba(255, 166, 87, 0.28);
  border-radius: 12px;
  overflow: hidden;
}
.welcome-note__bar {
  width: 4px;
  background: var(--warm);
  flex-shrink: 0;
}
.welcome-note__body {
  padding: 18px 22px;
  flex: 1;
}
.welcome-note__title {
  display: block;
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.welcome-note__body p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.welcome-note__body p:last-child { margin-bottom: 0; }
.welcome-note__body em {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}
.welcome-note__body strong {
  color: var(--warm);
  font-weight: 600;
}
.welcome-note__close {
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 166, 87, 0.18);
  font-style: italic;
}

/* ── CTA ─────────────────────────────────────────── */
.welcome-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  background: var(--grad);
  color: #0D1117;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(88, 166, 255, 0.32);
  transition: transform 0.18s, box-shadow 0.18s;
}
.welcome-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(188, 140, 255, 0.45);
}
.welcome-cta:active {
  transform: translateY(0);
}

/* ── Footer ──────────────────────────────────────── */
.welcome-footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 12px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .welcome-page { padding: 22px 18px 52px; }
  .welcome-hero__headline { font-size: 32px; }
  .welcome-hero__rings { width: 72px; height: 72px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-cta { padding: 13px 28px; font-size: 13px; }
  .welcome-topbar { padding: 14px 18px; }
}
