.welcome {
  position: relative;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: clamp(48px, 8vh, 88px) clamp(28px, 5vw, 72px);
  isolation: isolate;
}

body.is-idle .welcome {
  display: grid;
}

.welcome::before,
.welcome::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.welcome::before {
  width: min(62vw, 880px);
  aspect-ratio: 1;
  top: -48%;
  left: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ai) 12%, transparent) 0, transparent 68%);
}

.welcome::after {
  width: min(48vw, 680px);
  aspect-ratio: 1;
  right: -16%;
  bottom: -42%;
  background: radial-gradient(circle, color-mix(in srgb, var(--user) 9%, transparent) 0, transparent 70%);
}

.welcome-shell {
  width: min(1040px, 100%);
}

.welcome-intro {
  max-width: 760px;
}

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--user);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--user) 13%, transparent);
  content: "";
}

.welcome h1 {
  max-width: 740px;
  margin: 0;
  color: var(--foreground);
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.welcome-intro > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.welcome-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vh, 52px);
}

.welcome-action {
  --welcome-accent: var(--foreground);
  --welcome-accent-soft: var(--surface-soft);
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 210px;
  align-content: space-between;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 22px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-base) ease, border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-base) ease;
}

.welcome-action::after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--welcome-accent) 8%, transparent);
  content: "";
  pointer-events: none;
}

.welcome-action:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--welcome-accent) 62%, var(--border));
  background: color-mix(in srgb, var(--welcome-accent-soft) 44%, var(--surface));
  box-shadow: var(--shadow-md);
}

.welcome-action:active {
  transform: translateY(-1px) scale(0.995);
}

.welcome-action:focus-visible,
.welcome-workflow:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.welcome-action-logo {
  --welcome-accent: var(--ai);
  --welcome-accent-soft: var(--ai-soft);
}

.welcome-action-banner {
  --welcome-accent: var(--user);
  --welcome-accent-soft: var(--user-soft);
}

.welcome-action-projects {
  --welcome-accent: var(--data);
  --welcome-accent-soft: var(--data-soft);
}

.welcome-action-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--welcome-accent) 46%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--welcome-accent) 12%, var(--surface));
  color: var(--welcome-accent);
}

.welcome-action-icon svg,
.welcome-action-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-action-icon svg {
  width: 23px;
  height: 23px;
}

.welcome-action-arrow {
  position: absolute;
  top: 27px;
  right: 24px;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: transform var(--motion-fast) ease, color var(--motion-fast) ease;
}

.welcome-action:hover .welcome-action-arrow {
  transform: translate(2px, -2px);
  color: var(--welcome-accent);
}

.welcome-action-copy {
  display: grid;
  gap: 6px;
}

.welcome-action-copy small {
  color: var(--welcome-accent);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.welcome-action-copy strong {
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.welcome-action-copy span {
  max-width: 26ch;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.5;
}

.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

.welcome-footer p {
  margin: 0;
}

.welcome-workflow {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0 12px;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.welcome-workflow:hover {
  background: var(--surface-soft);
  color: var(--foreground);
}

.welcome-workflow:active {
  background: var(--surface-strong);
}

.welcome-workflow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-action,
  .welcome-action-arrow {
    transition: none;
  }

  .welcome-action:hover,
  .welcome-action:active,
  .welcome-action:hover .welcome-action-arrow {
    transform: none;
  }
}
